/* ================================
   Custom Styles for Latin Dating Central
   ================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --color-silver-50: #f8f9fa;
    --color-silver-100: #e9ecef;
    --color-silver-200: #dee2e6;
    --color-silver-300: #cbd5e0;
    --color-silver-400: #a0aec0;
    --color-silver-500: #718096;
    --color-silver-600: #4a5568;
    --color-silver-700: #2d3748;
    --color-silver-800: #1a202c;
    --color-silver-900: #171923;

    --color-emerald-50: #ecfdf5;
    --color-emerald-100: #d1fae5;
    --color-emerald-200: #a7f3d0;
    --color-emerald-300: #6ee7b7;
    --color-emerald-400: #34d399;
    --color-emerald-500: #10b981;
    --color-emerald-600: #059669;
    --color-emerald-700: #047857;
    --color-emerald-800: #065f46;
    --color-emerald-900: #064e3b;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-silver-800);
    background-color: var(--color-silver-50);
}

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

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    background: linear-gradient(135deg, var(--color-silver-700) 0%, var(--color-silver-900) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* ===== BRANDING & LOGO ===== */
.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.rocket-logo {
    width: 32px;
    height: 32px;
    color: var(--color-emerald-400);
    flex-shrink: 0;
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* ===== NAVIGATION ===== */
.site-navigation {
    display: block;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link,
.nav-label {
    display: block;
    padding: 0.75rem 1.25rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: var(--color-emerald-600);
    color: white;
}

.nav-label {
    user-select: none;
}

.nav-item.has-children:hover .nav-label {
    background-color: var(--color-emerald-600);
}

/* ===== DROPDOWN MENU ===== */
.nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    min-width: 250px;
    max-height: 500px;
    overflow-y: auto;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 100;
}

.nav-item.has-children:hover > .nav-submenu {
    display: block;
}

.nav-submenu .nav-link {
    color: var(--color-silver-800);
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
}

.nav-submenu .nav-link:hover {
    background-color: var(--color-emerald-50);
    color: var(--color-emerald-700);
}

/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 768px) {
    .site-navigation {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 70px);
        background: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .site-navigation.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 1rem 0;
    }

    .nav-link,
    .nav-label {
        color: var(--color-silver-800);
        border-bottom: 1px solid var(--color-silver-200);
    }

    .nav-submenu {
        position: static;
        display: none;
        box-shadow: none;
        background: var(--color-silver-50);
        max-height: none;
        border-radius: 0;
        padding-left: 1rem;
    }

    .nav-item.has-children.active > .nav-submenu {
        display: block;
    }

    .nav-item.has-children > .nav-label::after {
        content: " ▼";
        font-size: 0.75rem;
        float: right;
    }

    .nav-item.has-children.active > .nav-label::after {
        content: " ▲";
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--color-silver-700) 0%, var(--color-emerald-700) 100%);
    color: white;
    padding: 4rem 1.5rem;
    text-align: center;
    margin: 0;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1.5rem;
        margin: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }
}

/* ===== MAIN CONTENT ===== */
main {
    padding: 3rem 0;
    min-height: 60vh;
}

.page-content {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .page-content {
        padding: 2rem 1.5rem;
    }
}

/* ===== TABLE OF CONTENTS ===== */
.table-of-contents {
    background: var(--color-emerald-50);
    border-left: 4px solid var(--color-emerald-600);
    padding: 2rem;
    margin-bottom: 3rem;
    border-radius: 8px;
}

.toc-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-emerald-800);
    margin-bottom: 1rem;
}

.toc-list {
    list-style: none;
}

.toc-item {
    margin: 0.5rem 0;
}

.toc-item-h2 {
    font-weight: 600;
}

.toc-item-h3 {
    padding-left: 1.5rem;
    font-weight: 400;
}

.toc-link {
    color: var(--color-emerald-700);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 1rem;
}

.toc-link:hover {
    color: var(--color-emerald-900);
    text-decoration: underline;
}

.toc-link::before {
    content: "□ ";
    color: var(--color-emerald-600);
    margin-right: 0.5rem;
    font-weight: bold;
}

/* ===== TYPOGRAPHY ===== */
.content h1,
.content h2,
.content h3,
.content h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-silver-900);
}

.content h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--color-emerald-500);
    padding-bottom: 0.75rem;
}

.content h2 {
    font-size: 2rem;
    color: var(--color-emerald-800);
}

.content h3 {
    font-size: 1.5rem;
    color: var(--color-emerald-700);
}

.content p {
    margin: 1.25rem 0;
    font-size: 1.125rem;
    line-height: 1.8;
}

/* ===== LISTS ===== */
.content ul,
.content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content ul li,
.content ol li {
    margin: 0.75rem 0;
    font-size: 1.125rem;
    line-height: 1.7;
}

.content ul {
    list-style: none;
}

.content ul li::before {
    content: "■";
    color: var(--color-emerald-600);
    font-weight: bold;
    display: inline-block;
    width: 1.5rem;
    margin-left: -1.5rem;
}

.content ol {
    list-style: decimal;
}

.content ol li {
    padding-left: 0.5rem;
}

.content ol li::marker {
    color: var(--color-emerald-600);
    font-weight: 700;
}

/* ===== BLOCKQUOTES ===== */
.content blockquote {
    background: var(--color-silver-100);
    border-left: 5px solid var(--color-emerald-600);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--color-silver-700);
    border-radius: 4px;
}

/* ===== TABLES ===== */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    -webkit-overflow-scrolling: touch;
}

.content table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    margin: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.content table th {
    background: var(--color-emerald-700);
    color: white;
    font-weight: 700;
    padding: 1rem;
    text-align: left;
    font-size: 1.05rem;
    white-space: nowrap;
}

.content table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-silver-200);
    font-size: 1rem;
}

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

.content table tr:nth-child(even) {
    background: var(--color-silver-50);
}

@media (max-width: 768px) {
    .content table {
        font-size: 0.85rem;
        min-width: 600px;
    }

    .content table th,
    .content table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .content table th {
        font-size: 0.9rem;
    }
}

/* ===== IMAGES ===== */
.content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== CONVERSION BUTTONS ===== */
.conversion-button-wrapper {
    text-align: center;
    margin: 3rem 0;
}

.conversion-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-emerald-600) 0%, var(--color-emerald-700) 100%);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.conversion-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, var(--color-emerald-700) 0%, var(--color-emerald-800) 100%);
}

.conversion-button:active {
    transform: translateY(0);
}

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(135deg, var(--color-silver-800) 0%, var(--color-silver-900) 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

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

.footer-section {
    padding: 1rem;
}

.footer-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-emerald-400);
}

.footer-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-silver-300);
}

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

.footer-nav li {
    margin: 0.5rem 0;
}

.footer-link {
    color: var(--color-silver-300);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--color-emerald-400);
    padding-left: 0.25rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-silver-700);
    color: var(--color-silver-400);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===== SECTIONS ===== */
section {
    margin: 2.5rem 0;
    scroll-margin-top: 100px;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 768px) {
    body {
        font-size: 17px;
    }

    .content h1 {
        font-size: 2rem;
    }

    .content h2 {
        font-size: 1.65rem;
    }

    .content h3 {
        font-size: 1.35rem;
    }

    .content p,
    .content li {
        font-size: 1.05rem;
    }
}

/* ===== ACCESSIBILITY ===== */
a:focus,
button:focus {
    outline: 2px solid var(--color-emerald-500);
    outline-offset: 2px;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SELECTION ===== */
::selection {
    background-color: var(--color-emerald-200);
    color: var(--color-emerald-900);
}
