/* Estilos CSS para o EnglishTips */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: white;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 3em 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.about {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.about h2 {
    color: #4CAF50;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
}

.about p {
    font-size: 1.1em;
    text-align: justify;
    line-height: 1.8;
}

.content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.content h2 {
    color: #4CAF50;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.video-section,
.exercise-section,
.article-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.video-section:hover,
.exercise-section:hover,
.article-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.video-section h3,
.exercise-section h3,
.article-section h3 {
    color: #4CAF50;
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: center;
}

.video-section p,
.exercise-section p,
.article-section p {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    color: #666;
}

.video-placeholder,
.exercise-placeholder,
.article-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    margin-top: 20px;
    border: 2px dashed #4CAF50;
    transition: all 0.3s ease;
}

.video-placeholder:hover,
.exercise-placeholder:hover,
.article-placeholder:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    transform: scale(1.02);
}

.video-placeholder p,
.exercise-placeholder p,
.article-placeholder p {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
}

footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

footer p {
    font-size: 1.1em;
}

/* Animações */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsividade */
@media (min-width: 768px) {
    .content {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    header h1 {
        font-size: 4em;
    }
    
    .about h2,
    .content h2 {
        font-size: 3em;
    }
}

@media (max-width: 767px) {
    header {
        padding: 2em 0;
    }
    
    header h1 {
        font-size: 2.5em;
    }
    
    header p {
        font-size: 1em;
    }
    
    main {
        padding: 20px 10px;
    }
    
    .about {
        padding: 20px;
    }
    
    .about h2 {
        font-size: 2em;
    }
    
    .content h2 {
        font-size: 2em;
    }
    
    .video-section,
    .exercise-section,
    .article-section {
        padding: 20px;
    }
}



/* Estilos para novos elementos */

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: white;
    color: #4CAF50;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 3em;
    color: #4CAF50;
    margin-bottom: 20px;
}

.feature h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.feature p {
    color: #666;
    font-size: 1em;
}

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

.video-placeholder i,
.exercise-placeholder i,
.article-placeholder i {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
}

.video-placeholder small,
.exercise-placeholder small,
.article-placeholder small {
    display: block;
    margin-top: 10px;
    font-size: 0.9em;
    opacity: 0.8;
}

.stats {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.stats h2 {
    color: #4CAF50;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-item i {
    font-size: 3em;
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

.stat-item p {
    font-size: 1.1em;
    opacity: 0.9;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4CAF50;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsividade adicional */
@media (max-width: 767px) {
    .header-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 200px;
        justify-content: center;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}


/* Estilos para autenticação no site principal */

.auth-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-btn-link {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
}

.auth-btn-link.login-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.auth-btn-link.login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.auth-btn-link.register-btn {
    background: white;
    color: #4CAF50;
    border: 2px solid white;
}

.auth-btn-link.register-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.user-menu {
    margin-top: 20px;
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.3);
}

.user-info i {
    font-size: 1.5em;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}

.user-dropdown a:hover {
    background: #f5f5f5;
}

.user-dropdown a i {
    width: 16px;
    color: #4CAF50;
}

/* Responsividade para autenticação */
@media (max-width: 767px) {
    .auth-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .auth-btn-link {
        width: 200px;
        justify-content: center;
    }
    
    .user-menu {
        margin-top: 15px;
    }
    
    .user-dropdown {
        position: fixed;
        top: auto;
        left: 20px;
        right: 20px;
        transform: none;
        margin-top: 5px;
    }
}

.ifam-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #006633;
    padding: 10px 20px;
    color: white;
    font-family: 'Segoe UI', sans-serif;
}

.ifam-logo {
    height: 50px;
}

.course-info {
    display: flex;
    align-items: center;
    font-size: 16px;
    gap: 10px;
}

.course-info i {
    font-size: 20px;
}
