/**
 * WebKing Default Site Template Styles
 * Clean, modern, responsive design for customer websites
 */

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    overflow-x: hidden;
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

/* Logo/Brand */
.site-brand a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.site-logo {
    height: 50px;
    width: auto;
}

.site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}

/* Navigation */
.site-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
}

.nav-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

.nav-menu a.active {
    background: linear-gradient(135deg, #FFD60A 0%, #F5C400 100%);
    color: #000;
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    color: #333;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.site-main {
    min-height: calc(100vh - 200px);
    padding: 60px 0;
}

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

/* Typography */
.page-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    line-height: 1.2;
}

.page-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #111;
    line-height: 1.3;
}

.page-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #222;
}

.page-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 25px 0 10px;
    color: #333;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.page-content ul,
.page-content ol {
    margin: 20px 0 20px 30px;
}

.page-content li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: #555;
}

.page-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.page-content a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.page-content blockquote {
    border-left: 4px solid #FFD60A;
    padding: 15px 20px;
    margin: 30px 0;
    background: rgba(255, 214, 10, 0.05);
    font-style: italic;
    color: #666;
}

.page-content code {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.page-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.page-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.page-content th,
.page-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.page-content th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-bottom: 10px;
    color: #999;
}

.footer-description {
    margin-top: 15px;
    color: #777;
    font-size: 0.9rem;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-powered {
    text-align: right;
}

.footer-powered a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-powered a:hover {
    color: #FFD60A;
}

.footer-powered strong {
    color: #FFD60A;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    /* Header */
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: #ffffff;
        flex-direction: column;
        padding: 30px 20px;
        gap: 10px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Main */
    .site-main {
        padding: 40px 0;
    }

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

    .page-content h2 {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-powered {
        text-align: left;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    .page-content h1 {
        font-size: 1.75rem;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
