/**
 * TablQR Common Styles
 * 
 * Shared styles for header, footer, and common elements.
 *
 * @package qrserve
 * @subpackage TablQR
 * @since 1.5.0
 */

:root {
    --tqr-primary: #c2410c;
    --tqr-primary-dark: #9a3412;
    --tqr-primary-light: #fff7ed;
    --tqr-text: #292524;
    --tqr-text-light: #78716c;
    --tqr-text-muted: #a8a29e;
    --tqr-bg: #ffffff;
    --tqr-bg-alt: #faf8f5;
    --tqr-border: #e7e0d8;
    --tqr-success: #16a34a;
    --tqr-gradient: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--tqr-bg);
    color: var(--tqr-text);
    line-height: 1.6;
}

/* ===========================================
   HEADER
   =========================================== */

.tqr-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 16px 24px;
    transition: all 0.3s ease;
}

.tqr-header.scrolled {
    padding: 12px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tqr-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tqr-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--tqr-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tqr-logo svg {
    width: 28px;
    height: 28px;
}

.tqr-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tqr-nav a {
    padding: 10px 18px;
    text-decoration: none;
    color: var(--tqr-text-light);
    font-weight: 500;
    font-size: 15px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.tqr-nav a:hover {
    color: var(--tqr-text);
    background: var(--tqr-bg-alt);
}

.tqr-nav .tqr-btn-primary {
    background: var(--tqr-gradient);
    color: white !important;
    font-weight: 600;
}

.tqr-nav .tqr-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    background: var(--tqr-gradient);
}

@media (max-width: 768px) {
    .tqr-nav a:not(.tqr-btn-primary) {
        display: none;
    }
    
    .tqr-nav .tqr-btn-primary {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* ===========================================
   FOOTER
   =========================================== */

.tqr-footer {
    background: var(--tqr-bg-alt);
    border-top: 1px solid var(--tqr-border);
    padding: 60px 24px 40px;
}

.tqr-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

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

.tqr-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tqr-footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--tqr-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tqr-footer-logo svg {
    width: 28px;
    height: 28px;
}

.tqr-footer-desc {
    color: var(--tqr-text-light);
    font-size: 14px;
    line-height: 1.7;
    max-width: 300px;
}

.tqr-footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tqr-text);
    margin-bottom: 16px;
}

.tqr-footer-col ul {
    list-style: none;
}

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

.tqr-footer-col a {
    color: var(--tqr-text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.tqr-footer-col a:hover {
    color: var(--tqr-primary);
}

.tqr-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--tqr-border);
}

.tqr-footer-copy {
    color: var(--tqr-text-muted);
    font-size: 13px;
}

.tqr-footer-social {
    display: flex;
    gap: 16px;
}

.tqr-footer-social a {
    color: var(--tqr-text-light);
    transition: color 0.2s;
}

.tqr-footer-social a:hover {
    color: var(--tqr-primary);
}

.tqr-footer-social svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 900px) {
    .tqr-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .tqr-footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .tqr-footer-grid {
        grid-template-columns: 1fr;
    }
    
    .tqr-footer-brand {
        grid-column: span 1;
    }
    
    .tqr-footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Main content area (used with get_header/get_footer) */
.tqr-main {
    min-height: calc(100vh - 300px);
}
