/* Library Page Styles */

:root {
    --dpfp-yellow: #f5b500;
    --dpfp-blue: #043e80;
    --dpfp-dark-blue: #032d5e;
    --dpfp-text: #333333;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section (Reusing member-hero styles usually, but keeping overrides here if needed) */
.dpfp-library-hero {
    padding: 100px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #fff;
}

/* Library Grid */
.dpfp-library-grid-section {
    padding: 40px 20px 100px;
    background-color: #fcfcfc;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.library-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    text-decoration: none;
    color: var(--dpfp-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.library-card:not(.coming-soon):hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

/* Card Top Border Accent */
.library-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--dpfp-blue), var(--dpfp-yellow));
    opacity: 0;
    transition: opacity 0.3s;
}

.library-card:not(.coming-soon):hover::before {
    opacity: 1;
}

/* Icons */
.library-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.photo-icon-bg {
    background: rgba(3, 169, 244, 0.15) !important;
    color: #03a9f4 !important;
}

.youtube-icon-bg {
    background: rgba(255, 0, 0, 0.1) !important;
    color: #ff0000 !important;
}

.candidate-icon-bg {
    background: rgba(76, 175, 80, 0.15) !important;
    color: #4caf50 !important;
}

.clips-icon-bg {
    background: rgba(103, 58, 183, 0.15) !important;
    color: #673ab7 !important;
}

.art-icon-bg {
    background: rgba(255, 152, 0, 0.15) !important;
    color: #ff9800 !important;
}

/* Legacy */
.icon-photos {
    background: rgba(3, 169, 244, 0.1);
    color: #03a9f4;
}

.icon-art {
    background: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
}

.icon-video {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.library-card:not(.coming-soon):hover .library-card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Content */
.library-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.library-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dpfp-blue);
    margin: 0 0 15px;
    line-height: 1.3;
}

.library-card-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Arrow */
.library-card-arrow {
    margin-top: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.3s;
}

.library-card:not(.coming-soon):hover .library-card-arrow {
    background: var(--dpfp-blue);
    color: #fff;
    transform: translateX(5px);
}

/* Coming Soon State */
.library-card.coming-soon {
    cursor: default;
    opacity: 0.8;
    background: #f9f9f9;
}

.coming-soon-badge {
    margin-top: 15px;
    display: inline-block;
    padding: 5px 12px;
    background: #eee;
    color: #888;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .library-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .library-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .library-card {
        padding: 30px 20px;
    }
}