/*
Theme Name: Republic Theme
Theme URI: https://republictheme.com
Author: Republic
Author URI: https://republictheme.com
Description: Tekel dükkanları için şık, tek sayfalık WordPress teması. Koyu arka plan ve altın vurgularla premium bir deneyim sunar.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: republic-theme
Tags: one-page, custom-logo, custom-colors
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    --color-bg: #0a0a0a;
    --color-bg-secondary: #141414;
    --color-bg-card: rgba(255, 255, 255, 0.04);
    --color-gold: #d4a853;
    --color-gold-light: #e8c97a;
    --color-gold-dark: #b8922e;
    --color-text: #f0ece4;
    --color-text-muted: #9a9590;
    --color-border: rgba(212, 168, 83, 0.15);
    --color-instagram: #E1306C;
    --color-whatsapp: #25D366;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --shadow-gold: 0 0 40px rgba(212, 168, 83, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   BACKGROUND TEXTURE & AMBIENT
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(212, 168, 83, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(212, 168, 83, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   MAIN WRAPPER
   ============================================ */
.republic-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

/* ============================================
   HERO SECTION — LOGO
   ============================================ */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 80px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.logo-container {
    position: relative;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.logo-container img {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(212, 168, 83, 0.2));
    transition: var(--transition);
}

.logo-container img:hover {
    filter: drop-shadow(0 0 50px rgba(212, 168, 83, 0.35));
    transform: scale(1.03);
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

.site-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 10px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.site-tagline {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 8px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* ============================================
   SOCIAL BUTTONS
   ============================================ */
.social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.social-cta {
    text-align: center;
    margin-bottom: 30px;
    max-width: 500px;
}

.social-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.25);
    margin-bottom: 16px;
    animation: bounce 2s ease-in-out infinite;
}

.social-cta__icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-gold);
}

.social-cta__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.social-cta__subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.social-cta__subtitle span {
    color: var(--color-gold-light);
    font-weight: 500;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.social-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 60px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.social-btn--instagram {
    background: linear-gradient(135deg, #833AB4, #E1306C, #F77737);
    box-shadow: 0 4px 20px rgba(225, 48, 108, 0.3);
}

.social-btn--instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(225, 48, 108, 0.5);
}

.social-btn--whatsapp {
    background: linear-gradient(135deg, #128C7E, #25D366);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.social-btn--whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ============================================
   INFO SECTION — ADDRESS & HOURS
   ============================================ */
.info-section {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    width: 100%;
}

.info-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 40px 35px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0;
    transition: var(--transition);
}

.info-card:hover {
    border-color: rgba(212, 168, 83, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.info-card:hover::before {
    opacity: 1;
}

.info-card__icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.2);
}

.info-card__icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-gold);
}

.info-card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.info-card__content {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.info-card__content strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Day-hours table */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
}

.hours-table td {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.hours-table td:first-child {
    text-align: left;
    color: var(--color-text);
    font-weight: 500;
}

.hours-table td:last-child {
    text-align: right;
    color: var(--color-gold-light);
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
    padding: 60px 20px 0;
    animation: fadeInUp 1s ease-out 1s both;
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
    filter: grayscale(0.3) contrast(1.1);
    transition: var(--transition);
}

.map-container:hover iframe {
    filter: grayscale(0) contrast(1);
}

.map-label {
    text-align: center;
    padding: 20px 0 10px;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 15px;
}

.map-label h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-gold);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.map-label p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ============================================
   STORE BLOCKS
   ============================================ */
.store-block {
    max-width: 800px;
    width: 100%;
}

.store-block__header {
    text-align: center;
    margin-bottom: 30px;
}

.store-block__title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.store-block__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.store-map {
    margin-top: 30px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}

.store-map iframe {
    width: 100%;
    height: 350px;
    border: none;
    display: block;
    filter: grayscale(0.3) contrast(1.1);
    transition: var(--transition);
}

.store-map:hover iframe {
    filter: grayscale(0) contrast(1);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    text-align: center;
    padding: 50px 20px 30px;
    margin-top: 40px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.site-footer p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 2px;
}

.site-footer .footer-brand {
    color: var(--color-gold);
    font-weight: 600;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Scroll reveal animation (JS controlled) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        padding: 60px 20px 30px;
    }

    .logo-container img {
        max-width: 360px;
    }

    .site-title {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }

    .social-btn {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-card {
        padding: 30px 25px;
    }

    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .logo-container img {
        max-width: 380px;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .social-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

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