@import url('global.css');

/* ========================================
   HOME PAGE STYLES
   ======================================== */

/* Sections SPA */
.section {
    display: none;
    min-height: 100vh;
    padding-top: 100px;
}

.section.active {
    display: block;
}



/* Home Section */
#home {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) saturate(1.2);
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #87ceeb 0%, #4fb3d9 50%, #00a8cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 179, 217, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(79, 179, 217, 0.5);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--seafoam);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Loading Content */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: rgba(255, 255, 255, 0.7);
}

.loading-content i {
    font-size: 3rem;
    color: var(--seafoam);
    margin-bottom: 1rem;
}

.content-loaded {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 179, 217, 0.3);
}

/* ========================================
   RESPONSIVE HOME PAGE
   ======================================== */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 1rem;
    }
}

/* ONGs Section Styles */
.ongs-category {
    margin-bottom: 4rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2rem;
    color: var(--light-blue);
    margin-bottom: 2rem;
    font-weight: 600;
}

.category-title i {
    color: var(--seafoam);
    font-size: 1.5rem;
}

.ongs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.ong-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 179, 217, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ong-card.featured {
    border: 2px solid var(--seafoam);
    box-shadow: 0 0 30px rgba(79, 179, 217, 0.3);
}

.ong-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(79, 179, 217, 0.5);
    box-shadow: 0 20px 40px rgba(0, 105, 148, 0.3);
}

.ong-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.ong-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--seafoam), var(--aqua));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.ong-info h4 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--light-blue);
}

.ong-type {
    background: rgba(79, 179, 217, 0.2);
    color: var(--seafoam);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.ong-gallery {
    margin-bottom: 1rem;
}

.gallery-main img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 0.5rem;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.gallery-thumbs img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-thumbs img:hover {
    transform: scale(1.05);
    border: 2px solid var(--seafoam);
}

.ong-description p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.ong-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ong-actions button {
    flex: 1;
    min-width: 100px;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-donate {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-volunteer {
    background: linear-gradient(135deg, var(--seafoam), var(--aqua));
    color: white;
}

.btn-volunteer:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 179, 217, 0.4);
}

.btn-learn-more {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-blue);
    border: 1px solid rgba(79, 179, 217, 0.3);
}

.btn-learn-more:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--seafoam);
}

/* Education Section Styles */
.education-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.edu-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(79, 179, 217, 0.3);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.edu-tab.active,
.edu-tab:hover {
    background: var(--seafoam);
    color: white;
    border-color: var(--seafoam);
    transform: translateY(-2px);
}

.edu-content {
    display: none;
}

.edu-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.media-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 105, 148, 0.3);
}

.media-thumbnail {
    position: relative;
    overflow: hidden;
}

.media-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(79, 179, 217, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-overlay:hover {
    background: var(--seafoam);
    transform: translate(-50%, -50%) scale(1.1);
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
}

.media-info {
    padding: 1rem;
}

.media-info h4 {
    color: var(--light-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.media-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.media-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.article-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-content {
    padding: 1rem;
}

.article-category {
    background: var(--seafoam);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.article-content h4 {
    color: var(--light-blue);
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.article-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.curiosities-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.fact-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(79, 179, 217, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.fact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--seafoam);
}

.fact-icon {
    font-size: 3rem;
    color: var(--seafoam);
    margin-bottom: 1rem;
}

.fact-content h4 {
    color: var(--light-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.fact-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.sounds-container {
    text-align: center;
}

.sounds-container h3 {
    color: var(--light-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.sounds-container > p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.audio-players {
    display: grid;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.audio-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(79, 179, 217, 0.3);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-info h4 {
    color: var(--light-blue);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.audio-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.play-btn {
    width: 40px;
    height: 40px;
    background: var(--seafoam);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: var(--aqua);
    transform: scale(1.1);
}

.audio-progress {
    width: 150px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--seafoam);
    transition: width 0.3s ease;
}

.duration {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive for ONGs and Education */
@media (max-width: 768px) {
    .ongs-grid {
        grid-template-columns: 1fr;
    }
    
    .ong-actions {
        flex-direction: column;
    }
    
    .ong-actions button {
        min-width: auto;
    }
    
    .education-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .edu-tab {
        width: 200px;
        justify-content: center;
    }
    
    .audio-card {
        flex-direction: column;
        text-align: center;
    }
    
    .audio-controls {
        margin-left: 0;
    }
}

/* Standalone Pages Styles */
.page-content {
    padding-top: 100px;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--seafoam) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.page-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page-specific responsive adjustments */
@media (max-width: 768px) {
    .page-content {
        padding-top: 90px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .page-header {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
}



