/**
 * Additional Pages CSS
 * LibraryHub CMS
 */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0 40px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a { color: rgba(255, 255, 255, 0.8); }
.breadcrumb-item.active { color: white; }

/* Profile & Contact Cards */
.profile-card, .contact-card, .contact-info-card, .contact-form-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.profile-placeholder, .org-placeholder {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.contact-list, .contact-item {
    list-style: none;
    padding: 0;
}

.contact-list li {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 15px;
}

/* Organization */
.org-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.org-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 4px solid #3498DB;
}

/* News */
.news-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.news-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.news-thumb {
    border-radius: 10px;
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.news-detail {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.news-content { line-height: 1.8; font-size: 1.05rem; }
.news-content img { max-width: 100%; border-radius: 10px; margin: 20px 0; }

/* Sidebar */
.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498DB;
}

.widget-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

/* Collections */
.collection-detail-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.collection-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.collection-header {
    background: linear-gradient(135deg, #3498DB, #2C3E50);
    color: white;
    padding: 40px;
    text-align: center;
}

.collection-body { padding: 25px; }

.collection-stats {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.collection-stats .stat h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #3498DB;
    margin: 0;
}

/* Gallery */
.btn-filter {
    background: #f8f9fa;
    border: none;
    padding: 10px 25px;
    margin: 5px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-filter.active, .btn-filter:hover {
    background: #3498DB;
    color: white;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: white;
    margin-bottom: 10px;
}

.gallery-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: white;
}

.gallery-view-btn {
    background: white;
    color: #3498DB;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    align-self: center;
}

.gallery-view-btn:hover {
    background: #3498DB;
    color: white;
    transform: scale(1.1);
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.gallery-modal-content {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.gallery-modal-caption {
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 700px;
}

/* Contact */
.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #ddd;
}

.contact-item:last-child { border-bottom: none; }

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498DB, #2C3E50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.social-links-large {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1.25rem;
}

.social-link:hover {
    background: #3498DB;
    color: white;
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #2C3E50;
}

.form-control {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #3498DB;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}
