@import url('global.css');

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

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

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

.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(67, 160, 71, 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(--sage-green);
    color: white;
    border-color: var(--sage-green);
    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(27, 94, 32, 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(67, 160, 71, 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(--sage-green);
    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-green);
    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(--sage-green);
    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-green);
    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);
}
.sounds-container {
    text-align: center;
}

.sounds-container h3 {
    color: var(--light-green);
    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(67, 160, 71, 0.3);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-info h4 {
    color: var(--light-green);
    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(--sage-green);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: var(--leaf-green);
    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(--sage-green);
    transition: width 0.3s ease;
}

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

/* ========================================
   EXTERNAL LINK STYLES
   ======================================== */

.external-link-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--sage-green);
    color: white;
    padding: 5px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    opacity: 0.9;
}

.article-card:hover .external-link-badge {
    opacity: 1;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* =============================
   Species Threatened Grid
   ============================= */
.species-section {
    margin-top: 3rem;
    text-align: center;
}

.species-title {
    font-size: 2.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--light-green), var(--golden));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .75rem;
}

.species-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    margin-bottom: 2.2rem;
}

.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.species-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 3/4;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-decoration: none;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all .4s ease;
}

.species-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.85) saturate(1.15);
    transition: transform .6s ease;
}

.species-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.25), transparent 65%);
    opacity: .9;
    transition: opacity .4s ease;
}

.species-name {
    position: relative;
    z-index: 2;
    color: var(--golden);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.95rem;
    padding: .75rem 1rem;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.species-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,.45);
    border-color: var(--golden);
}

.species-card:hover img {
    transform: scale(1.08);
}

.species-card:hover::after {
    opacity: .75;
}

.species-button {
    display: inline-block;
    margin-top: 2.5rem;
    background: linear-gradient(135deg, var(--forest-green), var(--deep-green));
    padding: .95rem 2.2rem;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--golden);
    transition: all .35s ease;
}

.species-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212,175,55,.45);
    background: linear-gradient(135deg, var(--deep-green), var(--forest-green));
    border-color: var(--light-green);
}

@media (max-width: 640px) {
    .species-title { font-size: 1.9rem; }
    .species-subtitle { font-size: .95rem; }
    .species-name { font-size: .8rem; }
}

/* ========================================
   RECOMMENDATIONS SECTION
   ======================================== */

.recommendations-container {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.recommendations-title {
    font-size: 2.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--light-green), var(--golden));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.recommendations-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

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

.movie-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(67, 160, 71, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.movie-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--golden);
    box-shadow: 0 15px 40px rgba(27, 94, 32, 0.4);
}

.movie-poster {
    position: relative;
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--forest-green), var(--deep-green));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.poster-placeholder {
    font-size: 4rem;
    color: var(--sage-green);
    opacity: 0.6;
}

.movie-info {
    padding: 1.5rem;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.movie-info h4 {
    color: var(--light-green);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.movie-year {
    color: var(--golden);
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.movie-info p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    flex: 1;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.movie-tags .tag {
    background: rgba(67, 160, 71, 0.25);
    color: var(--sage-green);
    padding: 0.35rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border: 1px solid rgba(67, 160, 71, 0.4);
    transition: all 0.3s ease;
}

.movie-card:hover .movie-tags .tag {
    background: rgba(212, 175, 55, 0.2);
    color: var(--golden);
    border-color: var(--golden);
}

@media (max-width: 640px) {
    .recommendations-title { 
        font-size: 1.8rem; 
    }
    .recommendations-subtitle { 
        font-size: 0.95rem; 
    }
    .movies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .movie-poster {
        height: 260px;
    }
    .poster-placeholder {
        font-size: 3rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   ======================================== */

/* Mobile Small (até 480px) */
@media (max-width: 480px) {
    .sounds-container {
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .sounds-container h3 {
        font-size: 1.5rem;
    }
    
    .sounds-container > p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .audio-players {
        width: 100%;
        max-width: none;
        padding: 0;
        box-sizing: border-box;
    }
    
    .audio-card {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 0.8rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .audio-info {
        width: 100%;
    }
    
    .audio-info h4 {
        justify-content: center;
        font-size: 1rem;
    }
    
    .audio-info p {
        font-size: 0.8rem;
    }
    
    .audio-controls {
        margin-left: 0;
        justify-content: center;
        width: 100%;
        gap: 0.5rem;
    }
    
    .play-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .audio-progress {
        width: 120px;
    }
    
    .content-grid,
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .media-card,
    .article-card {
        width: 100%;
        box-sizing: border-box;
    }
    
    .education-nav {
        padding: 0 1rem;
        gap: 0.5rem;
    }
    
    .edu-tab {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile Medium (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .sounds-container {
        padding: 0 1.5rem;
    }
    
    .audio-players {
        max-width: 500px;
    }
    
    .audio-card {
        padding: 1rem;
    }
    
    .audio-controls {
        gap: 0.8rem;
    }
    
    .audio-progress {
        width: 130px;
    }
    
    .content-grid,
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
}

/* Mobile Large / Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .content-grid,
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .sounds-container {
        padding: 0 2rem;
    }
}