/* --- RESET ET STYLES DE BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --secondary: #f39c12;
    --accent: #e74c3c;
    --light: #f5f7fa;
    --dark: #34495e;
    --gray: #95a5a6;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary);
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    text-align: center;
    margin-bottom: 40px;
}

.force-active {
  pointer-events: auto !important;
  z-index: 9999 !important;
}

/* --- HEADER ET NAVIGATION --- */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-weight: 500;
    padding: 5px 10px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar {
    position: relative;
}

.search-bar input {
    padding: 8px 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray);
    width: 200px;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    width: 250px;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/home_hero.png');
    opacity: 0.15;
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40%;
    max-width: 500px;
    z-index: 1;
}

/* --- COMMUNAUTÉS SECTION --- */
.communities {
    background-color: white;
}

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

.community-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.community-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.community-image {
    height: 180px;
    overflow: hidden;
}

.community-image img {
    width: 100%;
    //height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.community-card:hover .community-image img {
    transform: scale(1.1);
}

.community-content {
    padding: 20px;
}

.community-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.community-description {
    color: var(--gray);
    margin-bottom: 15px;
}

.community-stats {
    display: flex;
    gap: 20px;
    color: var(--gray);
    font-size: 0.9rem;
}

.community-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- ARTICLES RÉCENTS --- */
.recent-articles {
    background-color: var(--light);
}

.article-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.article-tab {
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    font-weight: 500;
}

.article-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

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

.article-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.article-image {
//    height: 160px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.article-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.article-card:hover .article-title {
    color: var(--primary);
}

.article-excerpt {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.8rem;
}

/* --- ENGAGEMENT SECTION --- */
.engagement {
    background-color: white;
}

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

.engagement-card {
    background-color: var(--light);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.engagement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.engagement-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.engagement-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.engagement-description {
    color: var(--gray);
    margin-bottom: 20px;
}

/* --- DAILY POLL SECTION --- */
.daily-poll {
    background-color: var(--primary);
    color: white;
    padding: 40px 0;
}

.poll-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    color: var(--dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.poll-question {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.poll-option {
    background-color: var(--light);
    border-radius: var(--border-radius);
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.poll-option:hover {
    background-color: #e0e6ed;
}

.poll-option.selected {
    background-color: rgba(52, 152, 219, 0.2);
    border: 1px solid var(--primary);
}

.option-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.selected .option-radio {
    border-color: var(--primary);
}

.selected .option-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
}

.poll-submit {
    text-align: center;
}

.poll-results {
    margin-top: 20px;
}

.result-option {
    margin-bottom: 10px;
}

.result-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.result-bar {
    height: 10px;
    background-color: #e0e6ed;
    border-radius: 5px;
    overflow: hidden;
}

.result-fill {
    height: 100%;
    background-color: var(--primary);
}

/* --- TESTIMONIALS SECTION --- */
.testimonials {
    background-color: var(--light);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active {
    background-color: var(--primary);
    transform: scale(1.3);
}

/* --- NEWSLETTER SECTION --- */
.newsletter {
    background: linear-gradient(135deg, var(--secondary) 0%, #e67e22 100%);
    color: white;
    padding: 60px 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-description {
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.submit-button {
    padding: 15px 25px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}



.submit-button:hover {
    background-color: var(--primary-dark);
}


// newsletter 2nde partie

.newsletter-form-2 {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form-2 input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.submit-button2 {
    padding: 15px 25px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}



.submit-button2:hover {
    background-color: var(--primary-dark);
}



/* --- FOOTER --- */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-description {
    color: #bdc3c7;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 10px;
}

.footer-link a {
    color: #bdc3c7;
    transition: var(--transition);
}

.footer-link a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info {
    color: #bdc3c7;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-icon {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

.article-in-image {
    width: 100%;
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        margin-top: 15px;
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        text-align: center;
        padding: 80px 0;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: var(--border-radius);
    }
}

/* --- GAMIFICATION STYLES --- */
.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.progress-container {
    height: 5px;
    background-color: #e0e6ed;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    width: 60%;
}

/* --- FLOATING ACTION BUTTON --- */
.floating-action {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 99;
    transition: var(--transition);
}

.floating-action:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* --- MODAL --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    transform: translateY(50px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent);
}

/* --- PROFILE DROPDOWN --- */
.profile-dropdown {
    position: relative;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 200px;
    padding: 10px 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.profile-dropdown:hover .profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-item {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.profile-menu-item:hover {
    background-color: var(--light);
    color: var(--primary);
}

.profile-stats {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.profile-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.profile-stat-value {
    font-weight: 600;
}

/* --- CALL TO ACTION FLAGS --- */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* ARTICLES */

/* --- ARTICLE COMPLET --- */
.article-full {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.article-full-header {
    padding: 30px;
    background-color: var(--primary);
    color: white;
    position: relative;
}

.article-full-category {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.article-full-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.article-full-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
}

.article-full-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-full-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.article-full-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.article-full-content {
    padding: 40px;
}

.article-full-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-full-content h2 {
    font-size: 1.8rem;
    margin: 30px 0 20px;
    color: var(--dark);
}

.article-full-content h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: var(--dark);
}

.article-full-content ul, 
.article-full-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-full-content li {
    margin-bottom: 10px;
}

.article-full-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    margin: 20px 0;
    background-color: var(--light);
    font-style: italic;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-tag {
    background-color: #f0f2f5;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.article-tag:hover {
    background-color: var(--primary);
    color: white;
}

.button-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
//    border-top: 1px solid #eee;
}

.button-tag {
    background-color: #f0f2f5;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.button-tag:hover {
    background-color: var(--primary);
    color: white;
}

.button-tag.selected {
    background-color: var(--primary-dark);
    color: white;
}

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-social {
    display: flex;
    gap: 15px;
}

.article-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.article-social-link:hover {
    background-color: var(--primary);
    color: white;
}

.article-feedback {
    display: flex;
    gap: 15px;
}

.feedback-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    background-color: #f0f2f5;
    cursor: pointer;
    transition: var(--transition);
}

.feedback-btn:hover {
    background-color: #e0e6ed;
}

.feedback-btn.liked {
    background-color: rgba(52, 152, 219, 0.2);
    color: var(--primary);
}

.article-related {
    margin-top: 60px;
}

.related-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

/* Pour les articles réactifs sur mobile */
@media (max-width: 768px) {
    .article-full-header {
        padding: 20px;
    }
    
    .article-full-title {
        font-size: 1.8rem;
    }
    
    .article-full-featured-image {
        height: 250px;
    }
    
    .article-full-content {
        padding: 20px;
    }
    
    .article-full-content p {
        font-size: 1rem;
    }
    
    .article-actions {
        flex-direction: column;
        gap: 20px;
    }
    
    .article-social {
        width: 100%;
        justify-content: center;
    }
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 6px 20px rgba(52, 73, 94, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.modern-table thead tr {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.modern-table th {
    padding: 16px 20px;
    border: none;
    position: relative;
}

.modern-table th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.modern-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--light);
    color: var(--dark);
    line-height: 1.5;
}

.modern-table tbody tr {
    transition: all 0.3s ease;
    background: white;
}

.modern-table tbody tr:hover {
    background: linear-gradient(90deg, var(--light) 0%, rgba(245, 247, 250, 0.7) 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}

.modern-table tbody tr:nth-child(even) {
    background: rgba(245, 247, 250, 0.3);
}

.modern-table tbody tr:nth-child(even):hover {
    background: linear-gradient(90deg, var(--light) 0%, rgba(245, 247, 250, 0.8) 100%);
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

/* Special styling for key information cells */
.modern-table td:first-child {
    font-weight: 500;
    color: var(--primary-dark);
}

/* Accent borders for visual appeal */
.modern-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 50%, var(--primary) 100%);
}

.modern-table {
    position: relative;
}

/* Responsive wrapper styling */
.table-responsive {
    margin: 2rem 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(52, 73, 94, 0.08);
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .modern-table {
        font-size: 0.8rem;
        margin: 1rem 0;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 10px 12px;
    }
    
    .modern-table th {
        font-size: 0.75rem;
    }
    
    /* Stack table on very small screens */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modern-table {
        min-width: 500px;
    }
}

@media (max-width: 480px) {
    .modern-table th,
    .modern-table td {
        padding: 8px 10px;
    }
}



/* Subtle animation for loading effect */
@keyframes tableSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-table {
    animation: tableSlideIn 0.6s ease-out;
}

/* Optional: Enhanced focus states for accessibility */
.modern-table th:focus,
.modern-table td:focus {
    outline: 2px solid var(--secondary);
    outline-offset: -2px;
    background: rgba(243, 156, 18, 0.1);
}

/* Global badge styles - work everywhere */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 4px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1;
    white-space: nowrap;
}

/* Badge color variants using your color scheme */
.badge-tip {
    background: linear-gradient(135deg, var(--secondary), #f1c40f);
    color: white;
}

.badge-important {
    background: linear-gradient(135deg, var(--accent), #c0392b);
    color: white;
    animation: glow 2s ease-in-out infinite alternate;
}

.badge-info {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    position: relative;
    overflow: hidden;
}

.badge-new::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s infinite;
}

.badge-hot {
    background: linear-gradient(135deg, var(--accent), #e74c3c);
    color: white;
    animation: pulse 2s infinite;
}

.badge-quick {
    background: linear-gradient(135deg, var(--gray), var(--dark));
    color: white;
}

.badge-save {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.badge-pro {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
    border: 1px solid #9b59b6;
}

.badge-free {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 700;
}

/* Table-specific badge adjustments */
.modern-table .badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    margin-right: 6px;
}

/* Content-specific badge adjustments */
h1 .badge, h2 .badge, h3 .badge {
    font-size: 0.6em;
    vertical-align: top;
    margin-left: 8px;
}

p .badge {
    margin: 0 2px;
}

li .badge {
    margin-left: 4px;
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3); }
    50% { box-shadow: 0 2px 12px rgba(231, 76, 60, 0.6); }
    100% { box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3); }
}

@keyframes glow {
    from { box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3); }
    to { box-shadow: 0 2px 8px rgba(231, 76, 60, 0.6); }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    h1 .badge, h2 .badge, h3 .badge {
        font-size: 0.5em;
    }
}
