/* ========================================
   AIBantu Template Styles
   Shared styles for portfolio templates
======================================== */

:root {
    --template-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ========================================
   TEMPLATE 1: JASA LOKAL - Blue Theme
======================================== */
.template-jasa {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0ea5e9;
    --accent: #06b6d4;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f1f5f9;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* ========================================
   TEMPLATE 2: KULINER - Orange/Warm Theme
======================================== */
.template-kuliner {
    --primary: #ea580c;
    --primary-dark: #c2410c;
    --primary-light: #f97316;
    --secondary: #dc2626;
    --accent: #facc15;
    --dark: #1c1917;
    --gray: #78716c;
    --light: #fef3c7;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* ========================================
   TEMPLATE 3: TOKO - Green Theme
======================================== */
.template-toko {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #10b981;
    --secondary: #0d9488;
    --accent: #14b8a6;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #ecfdf5;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* ========================================
   BASE STYLES
======================================== */
.template-page {
    font-family: var(--template-font);
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.template-page * {
    box-sizing: border-box;
}

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

/* ========================================
   HEADER / NAVBAR
======================================== */
.template-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
}

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

.template-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

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

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

.template-nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.template-nav-links a:hover {
    color: var(--primary);
}

/* ========================================
   BUTTONS
======================================== */
.template-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.template-btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.template-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.template-btn-wa {
    background: #25D366;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.template-btn-wa:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.template-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.template-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========================================
   HERO SECTION
======================================== */
.template-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.template-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: var(--gradient);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

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

.template-hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.template-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.template-hero h1 span {
    color: var(--primary);
}

.template-hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
}

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

.template-hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    z-index: 1;
}

.template-hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* ========================================
   SECTION STYLES
======================================== */
.template-section {
    padding: 100px 0;
}

.template-section-alt {
    background: var(--light);
}

.template-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.template-section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.template-section-header p {
    font-size: 1.1rem;
    color: var(--gray);
}

/* ========================================
   FEATURES / WHY US
======================================== */
.template-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.template-feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

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

.template-feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--white);
}

.template-feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.template-feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ========================================
   SERVICES
======================================== */
.template-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.template-service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

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

.template-service-image {
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
}

.template-service-body {
    padding: 30px;
}

.template-service-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.template-service-body p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* ========================================
   AREA LAYANAN
======================================== */
.template-area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.template-area-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: var(--white);
    border-radius: 50px;
    font-weight: 500;
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.template-area-tag:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.template-area-tag i {
    color: var(--primary);
}

.template-area-tag:hover i {
    color: var(--white);
}

/* ========================================
   TESTIMONIALS
======================================== */
.template-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.template-testimonial-card {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    position: relative;
}

.template-testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    color: var(--light);
    font-family: Georgia, serif;
    line-height: 1;
}

.template-testimonial-text {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

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

.template-testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
}

.template-testimonial-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 3px;
}

.template-testimonial-info span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ========================================
   CTA SECTION
======================================== */
.template-cta {
    background: var(--gradient);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.template-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.template-cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.template-cta .template-btn-wa {
    background: var(--white);
    color: #25D366;
}

.template-cta .template-btn-wa:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ========================================
   CONTACT & MAPS
======================================== */
.template-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.template-contact-info {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

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

.template-contact-item:last-child {
    margin-bottom: 0;
}

.template-contact-icon {
    width: 60px;
    height: 60px;
    background: var(--light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.template-contact-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 5px;
}

.template-contact-text p {
    color: var(--gray);
    margin: 0;
}

.template-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.template-map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ========================================
   FOOTER
======================================== */
.template-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.template-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.template-footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.template-footer-logo span {
    color: var(--primary);
}

.template-footer-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.template-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.template-footer-links a:hover {
    color: var(--white);
}

.template-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
}

.template-footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

.template-footer-bottom a {
    color: var(--primary-light);
    text-decoration: none;
}

/* ========================================
   MENU KULINER
======================================== */
.template-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.template-menu-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

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

.template-menu-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.template-menu-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.template-menu-body {
    padding: 25px;
}

.template-menu-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.template-menu-body p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.template-menu-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

/* ========================================
   JAM BUKA
======================================== */
.template-hours {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    max-width: 500px;
    margin: 0 auto;
}

.template-hours-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--light);
}

.template-hours-item:last-child {
    border-bottom: none;
}

.template-hours-day {
    font-weight: 600;
    color: var(--dark);
}

.template-hours-time {
    color: var(--primary);
    font-weight: 500;
}

/* ========================================
   PRODUCT CATALOG (TOKO)
======================================== */
.template-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.template-category-btn {
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid var(--light);
    background: var(--white);
    color: var(--dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.template-category-btn:hover,
.template-category-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.template-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.template-product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

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

.template-product-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray);
}

.template-product-body {
    padding: 20px;
}

.template-product-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.template-product-body p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.template-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

/* ========================================
   WHATSAPP FLOATING
======================================== */
.template-wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    z-index: 999;
    transition: all 0.3s;
    animation: wa-pulse 2s infinite;
}

.template-wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.5);
}

@keyframes wa-pulse {

    0%,
    100% {
        box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 5px 35px rgba(37, 211, 102, 0.6);
    }
}

/* ========================================
   BACK TO PORTFOLIO BUTTON
======================================== */
.template-back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.template-back-btn:hover {
    background: var(--primary);
}

/* Hide back button when viewed in iframe */
.in-iframe .template-back-btn {
    display: none !important;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 992px) {
    .template-hero h1 {
        font-size: 2.5rem;
    }

    .template-hero-image {
        display: none;
    }

    .template-features-grid,
    .template-services-grid,
    .template-testimonials-grid,
    .template-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .template-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .template-contact-grid {
        grid-template-columns: 1fr;
    }

    .template-nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .template-hero h1 {
        font-size: 2rem;
    }

    .template-section-header h2 {
        font-size: 1.8rem;
    }

    .template-features-grid,
    .template-services-grid,
    .template-testimonials-grid,
    .template-menu-grid,
    .template-products-grid {
        grid-template-columns: 1fr;
    }

    .template-hero-buttons {
        flex-direction: column;
    }

    .template-btn {
        width: 100%;
        justify-content: center;
    }

    .template-footer-content {
        flex-direction: column;
        text-align: center;
    }

    .template-footer-links {
        flex-direction: column;
        gap: 15px;
    }
}