/* Device Album Page CSS */

/* --- Hero Section --- */
.device-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: #fff;
}

.device-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #128c5e;
    /* Primary */
    margin-bottom: 10px;
}

.device-hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.device-hero-divider {
    width: 60px;
    height: 4px;
    background-color: #128c5e;
    /* Primary */
    margin: 0 auto;
    border-radius: 2px;
}

/* --- Stats Bar --- */
.device-stats-bar {
    background: #f0fdf4;
    /* Primary Light */
    padding: 40px 0;
    border-bottom: 1px solid #dcfce7;
}

.device-stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.device-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.device-stat-icon {
    width: 48px;
    height: 48px;
    background-color: #128c5e;
    /* Primary */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(18, 140, 94, 0.2);
}

.device-stat-icon svg {
    width: 24px;
    height: 24px;
}

.device-stat-content {
    display: flex;
    flex-direction: column;
}

.device-stat-content strong {
    font-size: 1rem;
    color: #065f46;
    /* Dark Green Text */
    font-weight: 700;
}

.device-stat-content span {
    font-size: 0.9rem;
    color: #047857;
    /* Medium Green Text */
}

/* --- Album Grid --- */
.device-list-section {
    padding: 60px 0;
    background: #fff;
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .device-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .device-grid {
        grid-template-columns: 1fr;
    }
}

.device-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: #bbf7d0;
}

.device-card-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.device-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.device-card:hover .device-card-thumb img {
    transform: scale(1.05);
}

.tech-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 140, 94, 0) 0%, rgba(18, 140, 94, 0.45) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
}

.device-card:hover .tech-overlay {
    opacity: 1;
}

.device-card-body {
    padding: 24px;
    text-align: left;
}

.device-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
}

.device-card-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* --- Pagination --- */
.device-pagination {
    margin-top: 50px;
    text-align: center;
}

.device-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    color: #128c5e;
    /* Primary */
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.device-pagination .page-numbers:hover {
    background-color: #f0fdf4;
    border-color: #128c5e;
}

.device-pagination .page-numbers.current {
    background-color: #128c5e;
    /* Primary */
    color: #fff;
    font-weight: 700;
}

/* --- CTA Section --- */
.device-cta-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #e6fffa 100%);
    text-align: center;
}

.device-cta-title {
    font-size: 1.8rem;
    color: #064e3b;
    font-weight: 700;
    margin-bottom: 10px;
}

.device-cta-desc {
    color: #047857;
    margin-bottom: 30px;
    font-size: 1rem;
}

.device-cta-btn {
    display: inline-block;
    background-color: #128c5e;
    /* Primary */
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(18, 140, 94, 0.3);
}

.device-cta-btn:hover {
    background-color: #0f766e;
    /* Primary Dark */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(18, 140, 94, 0.4);
}

/* --- Container Utility removed as it's global --- */


/* Device Title Tag styles */
.device-title-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(18, 140, 94, 0.9);
    padding: 4px 10px;
    border-radius: 4px;
    max-width: calc(100% - 30px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 2;
}

.device-card:hover .device-title-tag {
    transform: translateY(0);
    background: rgba(18, 140, 94, 1);
}

.device-title-tag h3 {
    margin: 0;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}