/* ===================================
   UpečuTiJednu - Moderní Cukrářský Web
   Barvy: #EABA40 (zlatá) + Černá
   =================================== */

:root {
    --primary-gold: #EABA40;
    --primary-dark: #C89F2D;
    --black: #0a0a0a;
    --white: #ffffff;
    --cream: #FFF9F0;
    --light-gold: #F5E5B8;
    --shadow: rgba(234, 186, 64, 0.2);
    --text-gray: #4a4a4a;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--black);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

/* ========== UTILITIES ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-gold);
    color: var(--black);
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 1rem;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
}

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

.btn-outline:hover {
    background: var(--primary-gold);
    color: var(--black);
}

/* ========== HEADER / NAVIGATION ========== */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    height: 60px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--black);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gold);
    border-radius: 50%;
    color: var(--black);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--black);
    color: var(--primary-gold);
    transform: translateY(-3px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--black);
    transition: var(--transition);
    border-radius: 2px;
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-gold) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-gold) 0%, transparent 70%);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(40px, 10px) rotate(3deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    color: var(--black);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text .subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow:
        20px 20px 60px rgba(0,0,0,0.1),
        -20px -20px 60px rgba(255,255,255,0.5);
    transform: rotate(-3deg);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: rotate(-1deg) scale(1.02);
}

/* Decorative badges */
.badge {
    position: absolute;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: bounce 3s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.badge-icon {
    font-size: 2rem;
}

.badge-top {
    top: -20px;
    right: -20px;
}

.badge-bottom {
    bottom: -20px;
    left: -20px;
}

/* ========== FEATURES SECTION ========== */
.features {
    background: rgba(255, 255, 255, 0.92);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--cream);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 15px 40px var(--shadow);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--black);
    margin-bottom: 1rem;
}

/* ========== PRODUCTS SECTION ========== */
.products-header {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--primary-gold);
    color: var(--black);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gold);
    color: var(--black);
    transform: translateY(-2px);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tag {
    padding: 0.4rem 0.8rem;
    background: var(--primary-gold);
    color: var(--black);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: var(--black);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.product-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid var(--cream);
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.price-info {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 0.3rem;
}

/* ========== BIO/ABOUT SECTION ========== */
.bio-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.bio-image-container {
    position: relative;
}

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

.bio-text h2 {
    color: var(--black);
    margin-bottom: 1.5rem;
}

.bio-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.bio-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: 15px;
}

.highlight-icon {
    font-size: 2rem;
}

/* ========== REVIEWS SECTION ========== */
.reviews {
    background: rgba(255, 255, 255, 0.92);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.review-card {
    background: var(--cream);
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
}

.reviewer-info h4 {
    color: var(--black);
    margin-bottom: 0.2rem;
}

.stars {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.review-text {
    color: var(--text-gray);
    font-style: italic;
    line-height: 1.7;
}

.quote-icon {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 3rem;
    color: var(--primary-gold);
    opacity: 0.2;
}

/* ========== CONTACT SECTION ========== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.contact-info h3 {
    color: var(--black);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: 15px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
    background: var(--light-gold);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-gold);
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--black);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--cream);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--cream);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: var(--white);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-message {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ========== FOOTER ========== */
footer {
    background: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    line-height: 2;
}

.footer-section a:hover {
    color: var(--primary-gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gold);
    border-radius: 50%;
    color: var(--black);
    transition: var(--transition);
}

.footer-social a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-content,
    .bio-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        height: 450px;
    }

    .nav-links {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 6rem 2rem;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
    }

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

    .section {
        padding: 3rem 0;
    }

    .hero {
        min-height: auto;
        padding: 4rem 0;
    }

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

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

    .bio-highlights {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.875rem 2rem;
    }

    .hero-image img {
        height: 350px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Luxury smooth scrolling */
html {
    scroll-padding-top: 100px;
}

/* Enhanced product cards with glass morphism */
.product-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Luxury button glow effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Luxury image zoom on hover */
.product-image,
.hero-image {
    overflow: hidden;
}

.product-image img,
.hero-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Floating badges animation */
@keyframes float-badge {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.badge {
    animation: float-badge 3s ease-in-out infinite;
}

.badge-top {
    animation-delay: 0s;
}

.badge-bottom {
    animation-delay: 1.5s;
}

/* Luxury shadows on hover */
.feature-card:hover,
.review-card:hover {
    box-shadow:
        0 20px 60px rgba(234, 186, 64, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Smooth color transitions */
* {
    transition-property: background-color, color, border-color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Performance optimizations */
/* FIXED: Removed .product-card to prevent GPU layer issues causing jumping */
.feature-card,
.hero-image,
.badge {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== LOADING SPINNER ========== */
.spinner {
    border: 3px solid var(--cream);
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
