/* Gratitude Corner Styles */
.gratitude-page {
    min-height: 100vh;
}

/* Hero Section */
.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    opacity: 0.8;
}

/* Filters Section */
.gratitude-filters {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.filters-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-input-group {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.search-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
}

.search-input-group button {
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

.filter-tabs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-tabs, .author-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.category-tab, .author-tab {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.category-tab:hover, .author-tab:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.category-tab.active, .author-tab.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Gratitude Cards */
.gratitude-albums {
    padding: 3rem 0;
}

.albums-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gratitude-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.gratitude-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ffc107;
    color: #212529;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdf-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.pdf-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gratitude-card:hover .card-overlay {
    opacity: 1;
}

.document-count {
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.document-count i {
    margin-right: 0.5rem;
}

.view-btn {
    background: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.view-btn:hover {
    background: #0056b3;
    color: white;
}

.card-info {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.category-tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.author-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: white;
}

.author-student { background: #28a745; }
.author-teacher { background: #007bff; }
.author-parent { background: #6f42c1; }
.author-alumni { background: #fd7e14; }
.author-other { background: #6c757d; }

.card-title {
    margin-bottom: 1rem;
}

.card-title a {
    color: #212529;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
}

.card-title a:hover {
    color: #007bff;
}

.author-info {
    margin-bottom: 1rem;
    color: #6c757d;
}

.author-class {
    font-style: italic;
}

.card-description {
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.event-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.event-date i {
    margin-right: 0.5rem;
}

/* Album Page Styles */
.gratitude-album-page {
    min-height: 100vh;
}

.album-header {
    background: #f8f9fa;
    padding: 1rem 0;
}

.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.album-info {
    text-align: center;
}

.album-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.category-badge, .author-badge, .featured-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.category-badge {
    background: #e9ecef;
    color: #495057;
}

.author-badge {
    color: white;
}

.featured-badge {
    background: #ffc107;
    color: #212529;
}

.album-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #212529;
}

.album-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.album-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
}

.detail-item i {
    color: #007bff;
}

/* Documents Grid */
.documents-grid {
    padding: 3rem 0;
}

.documents-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.document-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.document-preview {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-icon {
    font-size: 4rem;
    color: #dc3545;
}

.document-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.document-card:hover .document-overlay {
    opacity: 1;
}

.document-actions {
    display: flex;
    gap: 1rem;
}

.btn-action {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-action:hover {
    transform: scale(1.1);
}

.btn-view {
    color: #007bff;
}

.btn-download {
    color: #28a745;
}

.document-info {
    padding: 1.5rem;
}

.document-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
}

.document-description {
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.document-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.file-size, .file-type {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Empty States */
.no-albums, .no-documents {
    text-align: center;
    padding: 4rem 2rem;
}

.no-albums-content, .no-documents-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-albums i, .no-documents i {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.no-albums h3, .no-documents h3 {
    color: #495057;
    margin-bottom: 1rem;
}

.no-albums p, .no-documents p {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item .page-link {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    color: #007bff;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.page-item .page-link:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .albums-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .documents-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-tabs {
        flex-direction: column;
    }
    
    .category-tabs, .author-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .album-title {
        font-size: 2rem;
    }
    
    .album-details {
        flex-direction: column;
        gap: 0rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .gratitude-albums, .documents-grid {
        padding: 2rem 0;
    }
    
    .card-info, .document-info {
        padding: 1rem;
    }
}