@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(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);
}
.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;
}

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

.external-link-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--seafoam);
    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;
}

/* ========================================
   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;
    }
}