/* Gallery page styles */
.gallery-section {
    padding: 4rem 0;
    background: #ffffff;
    min-height: 80vh;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1 {
    /* Use design system class .text-page-title instead */
}

.section-description {
    /* Use design system class .text-description instead */
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card-item {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-content {
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.card-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.card-category {
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Category-specific colors */
.card-category.category-focus { background: #1e40af; }
.card-category.category-mindfulness { background: #7c3aed; }
.card-category.category-productivity { background: #059669; }
.card-category.category-wellness { background: #ea580c; }
.card-category.category-creativity { background: #c2410c; }
.card-category.category-motivation { background: #dc2626; }
.card-category.category-balance { background: #0d9488; }
.card-category.category-growth { background: #10b981; }
.card-category.category-stress { background: #475569; }
.card-category.category-health { background: #65a30d; }
.card-category.category-goals { background: #d97706; }
.card-category.category-habits { background: #6b7280; }
.card-category.category-energy { background: #f97316; }
.card-category.category-clarity { background: #0284c7; }
.card-category.category-peace { background: #0ea5e9; }
.card-category.category-strength { background: #525252; }
.card-category.category-wisdom { background: #4338ca; }
.card-category.category-joy { background: #fbbf24; }
.card-category.category-purpose { background: #8b5cf6; }
.card-category.category-success { background: #06b6d4; }
.card-category.category-virtue { background: #9ca3af; }
.card-category.category-acceptance { background: #e11d48; }
.card-category.category-resilience { background: #16a34a; }
.card-category.category-discipline { background: #495057; }
.card-category.category-perspective { background: #a21caf; }

.card-date {
    color: #718096;
    font-weight: 500;
}

.card-title {
    margin-bottom: 1rem;
}

.card-title a {
    /* Use design system class .text-card-title instead */
    text-decoration: none;
    color: #1a202c;
}

.card-title a:hover {
    color: #4a90e2;
}

.card-description {
    /* Use design system class .text-body instead */
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

.card-btn {
    flex: 1;
    min-width: 100px;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    text-align: center;
    justify-content: center;
}

.image-toggle {
    /* Remove custom styling to use standard button styles */
}

.image-toggle.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.image-toggle.active:hover {
    background: #3a7bc8;
    border-color: #3a7bc8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.image-icon {
    font-size: 1.2rem;
    font-weight: 600;
}

.image-text {
    font-size: 0.75rem;
    font-weight: 500;
}

.card-image {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
}

.close-image {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-image:hover {
    background: rgba(0, 0, 0, 0.9);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

.empty-illustration {
    margin-bottom: 2rem;
}

.empty-state h2 {
    /* Use design system class .text-section-title instead */
}

.empty-state p {
    /* Use design system class .text-description instead */
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Button styles now handled by design system */

/* Filter Section */
.filter-section {
    margin-top: 1.5rem;
    text-align: center;
}

.filter-label {
    display: inline-block;
    margin-right: 0.75rem;
    font-weight: 500;
    color: #4a5568;
    font-size: 0.875rem;
}

.category-dropdown {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.875rem;
    color: #4a5568;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 180px;
}

.category-dropdown:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.category-dropdown:hover {
    border-color: #cbd5e0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .filter-section {
        margin-top: 1rem;
    }
    
    .filter-label {
        display: block;
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .category-dropdown {
        width: 100%;
        max-width: 300px;
    }

    .gallery-section {
        padding: 2rem 0;
    }
    
    .section-header h1 {
        /* Mobile scaling handled by design system */
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .btn {
        flex: 1;
        min-width: auto;
        text-align: center;
        justify-content: center;
    }
    
    .image-toggle {
        flex: 0 0 auto;
        min-width: 80px;
    }
    
    .card-item {
        padding: 1.5rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .card-header-left {
        width: 100%;
    }
    
    .streak-badge {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h1 {
        /* Mobile scaling handled by design system */
    }
    
    .empty-state {
        padding: 3rem 1rem;
    }
    
    .card-item {
        padding: 1rem;
    }
    
    .card-title a {
        /* Mobile scaling handled by design system */
    }
}

/* Pagination Styles - Elegant Design */
.pagination {
    margin: 3rem 0;
    text-align: center;
}

.pagination-list {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    padding: 1rem;
    margin: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.pagination-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 44px;
    justify-content: center;
}

.pagination-link:hover {
    background: #f8fafc;
    color: #334155;
    transform: translateY(-1px);
}

.pagination-current {
    background: #4a90e2;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.25);
}

.pagination-current:hover {
    background: #4a90e2;
    color: white;
    transform: none;
}

.pagination-ellipsis {
    padding: 0.75rem 0.5rem;
    color: #94a3b8;
    font-weight: 500;
}

.pagination-prev,
.pagination-next {
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    border-radius: 10px;
}

.pagination-prev:hover,
.pagination-next:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Cards Stats Styles - Match my_cards.css */
.cards-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #4a90e2;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #718096;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile responsive for pagination and stats */
@media (max-width: 768px) {
    .pagination {
        margin: 2rem 0;
    }
    
    .pagination-list {
        padding: 0.75rem;
        gap: 0.125rem;
    }
    
    .pagination-link {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
        min-width: 40px;
    }
    
    .pagination-prev,
    .pagination-next {
        padding: 0.625rem 1rem;
    }
    
    .cards-stats {
        gap: 2rem;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .pagination-list {
        padding: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }
    
    .pagination-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        min-width: 36px;
    }
    
    .pagination-prev,
    .pagination-next {
        padding: 0.5rem 0.875rem;
    }
    
    .cards-stats {
        gap: 1.5rem;
        padding: 1rem;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 1;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* Streak Badge on Cards (same as my_cards.css) */
.streak-badge {
    background: transparent !important;
    color: #2563eb !important;
    padding: 4px 0 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

.streak-badge::before {
    content: "🔥" !important;
    font-size: 1rem !important;
    display: inline-block !important;
}
