/* style.css */

/* Global Reset Classes */
.es-reset {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.es-page {
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography Classes */
.es-heading-1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.es-heading-2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.es-heading-3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.75rem;
}

.es-text {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 1rem;
}

.es-text-small {
    font-size: 0.9rem;
    color: #64748b;
}

.es-link {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.es-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Layout Classes */
.es-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.es-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.es-section-light {
    background-color: #ffffff;
}

.es-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.es-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

/* UI Elements */
.es-btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border: none;
}

.es-btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2), 0 2px 4px -1px rgba(37, 99, 235, 0.1);
}

.es-btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3), 0 4px 6px -2px rgba(37, 99, 235, 0.15);
    color: #ffffff;
    text-decoration: none;
}

.es-img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.es-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.es-list-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #475569;
}

.es-list-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* Component Classes */
.es-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding-top: 1rem;
    padding-bottom: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.es-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.es-disclosure {
    background-color: #f1f5f9;
    padding: 0.5rem 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.es-disclosure-text {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.es-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.es-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

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

.es-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding-top: 4rem;
    padding-bottom: 2rem;
    margin-top: 4rem;
}

.es-footer-link {
    color: #cbd5e1;
    text-decoration: none;
    margin-right: 1.5rem;
    font-size: 0.9rem;
}

.es-footer-link:hover {
    color: #ffffff;
}

.es-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.es-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.es-th, .es-td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.es-th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

.es-text-center {
    text-align: center;
}

.es-mt-2 { margin-top: 0.5rem; }
.es-mt-4 { margin-top: 1rem; }
.es-mt-8 { margin-top: 2rem; }
.es-mb-2 { margin-bottom: 0.5rem; }
.es-mb-4 { margin-bottom: 1rem; }
.es-mb-8 { margin-bottom: 2rem; }

/* ===== Hamburger Menu ===== */
.es-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 200;
    position: relative;
}

.es-hamburger-line {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #0f172a;
    border-radius: 3px;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.es-hamburger.active .es-hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.es-hamburger.active .es-hamburger-line:nth-child(2) {
    opacity: 0;
}

.es-hamburger.active .es-hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.es-nav-desktop {
    display: flex;
    align-items: center;
}

.es-nav-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.es-nav-mobile-overlay.active {
    display: block;
    opacity: 1;
}

.es-nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background-color: #ffffff;
    z-index: 160;
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.es-nav-mobile.active {
    right: 0;
}

.es-nav-mobile a {
    display: block;
    padding: 1rem 0;
    color: #1e293b;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.es-nav-mobile a:hover {
    color: #2563eb;
    padding-left: 0.5rem;
}

.es-nav-mobile a:last-child {
    border-bottom: none;
}

/* ===== Price Badge ===== */
.es-price-badge {
    display: inline-block;
    font-size: 2rem;
    font-weight: 800;
    color: #16a34a;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #bbf7d0;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.es-price-inline {
    font-size: 1.5rem;
    font-weight: 800;
    color: #16a34a;
}

/* ===== Responsive Design ===== */

/* Tablet */
@media (max-width: 768px) {
    .es-heading-1 {
        font-size: 1.8rem;
    }

    .es-heading-2 {
        font-size: 1.5rem;
    }

    .es-heading-3 {
        font-size: 1.25rem;
    }

    .es-hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .es-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .es-grid-2 {
        grid-template-columns: 1fr;
    }

    .es-grid-3 {
        grid-template-columns: 1fr;
    }

    /* Hamburger visible */
    .es-hamburger {
        display: block;
    }

    .es-nav-desktop {
        display: none;
    }

    .es-nav-mobile {
        display: block;
    }

    .es-btn {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    .es-disclosure-text {
        font-size: 0.7rem;
    }

    .es-table {
        font-size: 0.85rem;
    }

    .es-th, .es-td {
        padding: 0.75rem 0.5rem;
    }

    .es-footer {
        padding-top: 2.5rem;
        margin-top: 2rem;
    }

    .es-price-badge {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .es-heading-1 {
        font-size: 1.5rem;
    }

    .es-heading-2 {
        font-size: 1.3rem;
    }

    .es-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .es-hero {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .es-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .es-card {
        padding: 1.25rem;
    }

    .es-text {
        font-size: 1rem;
    }

    .es-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .es-footer .es-grid-3 {
        gap: 1.5rem;
    }

    .es-price-badge {
        font-size: 1.3rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Editorial Classes */
.es-article-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .es-article-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .es-article-container {
        padding: 1rem;
        border-radius: 8px;
    }
}

.es-author-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.es-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.es-article-body {
    margin-top: 2rem;
}

.es-article-text {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .es-article-text {
        font-size: 1rem;
        line-height: 1.65;
    }
}

.es-pros-cons-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
}

@media (max-width: 480px) {
    .es-pros-cons-box {
        padding: 1rem;
    }
}

/* Body no-scroll when menu open */
body.es-menu-open {
    overflow: hidden;
}

/* ===== Preloader ===== */
.es-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.es-preloader.es-hidden {
    opacity: 0;
    visibility: hidden;
}

.es-loader {
    border: 4px solid #e2e8f0;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: es-spin 1s linear infinite;
    margin-bottom: 1rem;
}

.es-preloader-text {
    font-size: 1.1rem;
    color: #475569;
    font-weight: 600;
}

@keyframes es-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
