/*
Theme Name: Restorani.me
Theme URI: https://restorani.me
Author: Antigravity
Author URI: https://restorani.me
Description: Modern, premium WordPress theme for the restorani.me platform.
Version: 1.0.0
Text Domain: restoranime
*/

:root {
  --primary: #E63946; /* Živahna crvena za restorane */
  --primary-hover: #D62828;
  --secondary: #1D3557; /* Tamno plava za pouzdanost */
  --text-dark: #1F2937;
  --text-light: #F3F4F6;
  --text-muted: #6B7280;
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --accent: #FCA311; /* Zlatnožuta za ocjene i isticanje */
  
  --pattern-food: url("data:image/svg+xml,%3Csvg width='150' height='150' viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3Etext { filter: grayscale(100%); opacity: 0.03; }%3C/style%3E%3Ctext y='40' x='20' font-size='30'%3E🍔%3C/text%3E%3Ctext y='110' x='90' font-size='30'%3E🍕%3C/text%3E%3Ctext y='30' x='110' font-size='24'%3E🍷%3C/text%3E%3Ctext y='120' x='20' font-size='24'%3E🥗%3C/text%3E%3Ctext y='80' x='50' font-size='24'%3E☕%3C/text%3E%3C/svg%3E");
  
  --font-main: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-main);
    background-image: var(--pattern-food);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.bg-white-pattern {
    background-color: white !important;
    background-image: var(--pattern-food) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Components
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 0.875rem;
    text-align: center;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 14px 0 rgba(230, 57, 70, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.23);
}

.btn-secondary {
    background-color: white;
    color: var(--secondary);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background-color: var(--bg-main);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header specific action buttons styling to match image */
.header-actions .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}
.header-actions .btn-secondary {
    color: var(--secondary);
    border: 1px solid #e5e7eb;
    box-shadow: none;
}
.header-actions .btn-secondary:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--secondary);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -1px;
}

.site-logo span {
    color: var(--primary);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.main-navigation a:hover {
    color: var(--primary);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.main-navigation a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(230,57,70,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

/* ==========================================================================
   Search Bar
   ========================================================================== */
.hero-search {
    background: white;
    padding: 0.5rem;
    border-radius: 9999px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: transparent;
    outline: none;
    color: var(--text-dark);
}

.hero-search select {
    border: none;
    border-left: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: transparent;
    outline: none;
    color: var(--text-muted);
    cursor: pointer;
}

.hero-search .btn-primary {
    padding: 1rem 3rem;
    border-radius: 9999px;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    height: 220px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-badge i {
    color: var(--accent);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.card-tag {
    background: #f1f5f9;
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ==========================================================================
   Features
   ========================================================================== */
.feature-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    background: var(--primary);
    color: white;
}

.feature-box h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--secondary);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-widget h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-widget p {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: #94a3b8;
}

.footer-menu a:hover {
    color: white;
    padding-left: 0.5rem;
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 0.875rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Tableti i manji laptopovi (ispod 1024px) */
@media (max-width: 1024px) {
    .hero {
        padding: 150px 0 80px;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .section-padding {
        padding: 80px 0;
    }
}

/* Tableti (ispod 992px) */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Skaliranje 3D elemenata za tablete */
    .hero-floating-plate.float-1 { width: 160px; height: 160px; }
    .hero-floating-plate.float-2 { width: 180px; height: 180px; }
    .hero-floating-plate.float-3 { width: 100px; height: 100px; }
    .about-floating-plate { transform: scale(0.8); }
}

/* Mobilni telefoni (ispod 768px) */
@media (max-width: 768px) {
    .main-navigation, .header-actions {
        display: none; /* Dodatni mobilni meni bi bio ovdje */
    }
    .site-header .container {
        justify-content: space-between; /* Razdvajanje logoa i menija na ivice */
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    .hero h1 {
        font-size: 2.25rem !important;
    }
    .hero p {
        font-size: 1.125rem;
    }
    
    /* Mobilno prilagođavanje za O Nama Hero sekciju sa inline stilovima */
    div[style*="padding: 150px 0 80px;"] {
        padding: 120px 0 60px !important;
    }
    div[style*="font-size: 3.5rem;"] {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }
    div[style*="font-size: 2.5rem;"] {
        font-size: 1.875rem !important;
    }

    /* Skaliranje i sakrivanje težih 3D slojeva na malim ekranima zbog preglednosti */
    .hero-floating-plate, 
    .about-floating-plate {
        opacity: 0.15 !important;
        transform: scale(0.5) !important;
    }
    .login-3d-element, 
    .reg-3d-element {
        font-size: 60px !important;
        opacity: 0.08 !important;
    }

    /* Prilagođavanje pretrage na hero sekciji */
    .hero-search {
        flex-direction: column;
        border-radius: 1rem;
        padding: 1rem;
    }
    .hero-search input, .hero-search select, .hero-search .btn-primary {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid #e5e7eb;
        border-radius: 0;
    }
    .hero-search select {
        border-bottom: none;
        margin-bottom: 1rem;
    }
    .hero-search .btn-primary {
        border-radius: 9999px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    .section-title {
        font-size: 1.875rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Fix Layout za login/registraciju kontejnere */
    div[style*="padding: 120px 0 80px;"] {
        padding: 100px 1rem 60px !important;
    }
    .bg-white-pattern {
        padding: 2rem 1.5rem !important;
    }
    
    /* Fix about page grid na telefonu */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));"] {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
}
/* ==========================================================================
   Mobile Menu Styles
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 10px;
    transition: var(--transition);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 53, 87, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 1003;
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.mobile-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.mobile-navigation ul {
    list-style: none;
}

.mobile-navigation li {
    margin-bottom: 1.5rem;
}

.mobile-navigation a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
}

.mobile-drawer-actions {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.w-full {
    width: 100% !important;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Sakrivanje desktop elemenata ako se preklapaju */
    .header-actions, .main-navigation {
        display: none !important;
    }
}
