/* Старата Флоренция - Modern Restaurant CSS */

/* Основни настройки и типография */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #f4a442;
    --primary-burgundy: #ff9642;
    --secondary-cream: #fff8e7;
    --secondary-terracotta: #ffb366;
    --dark-brown: #8b5a2b;
    --light-gray: #f5f5f5;
    --text-dark: #2c2c2c;
    --accent-olive: #d4a259;
}

html, body {
    min-height: 100vh;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    color: var(--text-dark);
    background: linear-gradient(135deg, rgba(255, 248, 231, 0.2) 0%, rgba(255, 255, 255, 0.3) 100%), url('img/ita1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Типография */
h1 {
    font-family: 'Garamond', 'Georgia', serif;
    font-size: 2.33rem;
    color: #ffffff;
    text-align: center;
    padding: 1.33rem 0;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 150, 66, 0.4),
        2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 3px;
    font-weight: 700;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #ffe4b5 25%,
        #ffd700 50%,
        #ffe4b5 75%,
        #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 1s ease-out, gradientShift 8s ease infinite;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

h1:hover {
    letter-spacing: 4px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    transition: width 0.5s ease;
}

h1:hover::after {
    width: 100%;
}

h2 {
    font-family: 'Garamond', 'Georgia', serif;
    font-size: 2.5rem;
    color: var(--dark-brown);
    margin: 2rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-gold);
    position: relative;
    animation: slideInLeft 0.8s ease-out;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-terracotta);
    transition: width 0.6s ease;
}

h2:hover::after {
    width: 200px;
}

h3 {
    font-size: 1.8rem;
    color: var(--primary-burgundy);
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

h3::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    animation: pulse 2s infinite;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.85) 0%, rgba(255, 150, 66, 0.85) 100%);
    box-shadow: 0 4px 20px rgba(255,150,50,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem 0.4rem 1.25rem;
}

.header-content h1 {
    text-align: center;
    margin: 0;
    white-space: nowrap;
}

/* Хамбургер меню бутон */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--secondary-cream);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

nav {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

nav a {
    color: var(--secondary-cream);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    margin: 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary-gold);
    transform: translateY(-3px);
}

nav a:hover::before {
    width: 100%;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(255,150,50,0.3);
    animation: fadeIn 1s ease-out;
    flex: 1 0 auto;
}

/* Параграфи */
p {
    font-size: 1.1rem;
    margin: 1rem 0;
    line-height: 1.9;
    color: var(--text-dark);
    text-align: justify;
}

strong {
    color: var(--primary-burgundy);
    font-weight: 700;
}

em {
    color: var(--accent-olive);
    font-style: italic;
}

/* Списъци */
ul {
    list-style: none;
    margin: 0.8rem 0;
}

ul li {
    padding: 0.4rem 0 0.4rem 0.5rem;
    position: relative;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    line-height: 1.4;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

ul li::before {
    content: '';
    position: absolute;
    left: 0;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

ul li:hover {
    background: var(--secondary-cream);
    border-left-color: var(--primary-gold);
    padding-left: 0.8rem;
}

ul li:hover::before {
    transform: rotate(360deg) scale(1.2);
}

/* Специални стилове за менюто */
ul li strong {
    color: var(--dark-brown);
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

ul li em {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
    flex-grow: 1;
}

ul li .price {
    color: var(--primary-burgundy);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

/* Horizontal Rule */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    margin: 3rem 0;
    animation: expandWidth 1s ease-out;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 150, 66, 0.85) 0%, rgba(139, 90, 43, 0.85) 100%);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    color: var(--secondary-cream);
    text-align: center;
    padding: 0.7rem;
    box-shadow: 0 -4px 20px rgba(255,150,50,0.3);
    z-index: 999;
}

footer p {
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-align: center;
    margin: 0;
}

/* Форми */
form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
}

label {
    font-weight: 600;
    color: var(--dark-brown);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="number"],
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--primary-gold);
    border-radius: 8px;
    font-size: 1rem;
    font-family: Georgia, serif;
    transition: all 0.3s ease;
    background: white;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-burgundy);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transform: scale(1.02);
}

textarea {
    resize: vertical;
}

input[type="submit"],
input[type="reset"] {
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--secondary-terracotta) 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    margin: 1rem 0.5rem 0 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255,150,50,0.2);
}

input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 150, 50, 0.5);
    background: linear-gradient(135deg, var(--secondary-terracotta) 0%, var(--primary-burgundy) 100%);
}

input[type="reset"] {
    background: linear-gradient(135deg, #666 0%, #999 100%);
}

input[type="reset"]:hover {
    background: linear-gradient(135deg, #999 0%, #666 100%);
    transform: translateY(-3px);
}

/* Галерия */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 2rem;
}

.gallery-item {
    width: 48%;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    border: 5px solid var(--primary-gold);
}

.gallery-item img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.4);
    border-color: var(--primary-burgundy);
}

.gallery-item em {
    display: block;
    margin-top: 10px;
    font-size: 1.1rem;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
        margin-left: 50%;
    }
    to {
        width: 100%;
        margin-left: 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Показване на хамбургер меню */
    .menu-toggle {
        display: flex;
    }
    
    /* Скриване и позициониране на навигацията */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(180deg, rgba(139, 90, 43, 0.98) 0%, rgba(255, 150, 66, 0.98) 100%);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 5rem 0 2rem 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 999;
        overflow-y: auto;
    }
    
    nav.active {
        right: 0;
    }
    
    nav a {
        display: block;
        margin: 0;
        padding: 1.2rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
        font-size: 1.2rem;
    }
    
    nav a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(-5px);
    }
    
    nav a::before {
        display: none;
    }
    
    /* Header корекции */
    header {
        position: relative;
    }
    
    h1 {
        font-size: 1.5rem;
        padding: 1rem 0;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    main {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    /* Галерия - 1 колона на mobile */
    .gallery-container {
        flex-direction: column;
    }
    
    .gallery-item {
        width: 100%;
        margin: 1rem 0;
    }
    
    /* Меню items */
    main ul li {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
    }
    
    main ul li strong {
        margin-bottom: 0.5rem;
    }
    
    main ul li .price {
        margin-left: 0;
        margin-top: 0.5rem;
        align-self: flex-end;
    }
    
    /* Форми */
    input[type="submit"],
    input[type="reset"] {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Footer корекции */
    footer {
        position: static;
        margin-top: auto;
        padding: 0.45rem 0.75rem;
        box-shadow: 0 -2px 10px rgba(255,150,50,0.2);
    }
    footer p {
        font-size: 0.8rem;
        letter-spacing: 0.6px;
        padding: 0;
        line-height: 1.3;
    }
}

/* Специални ефекти при скрол */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

/* Hover ефект за параграфи */
p:hover {
    color: var(--dark-brown);
}

/* Специален стил за цени в менюто */
main ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Подчертаване на важна информация */
p strong {
    background: linear-gradient(120deg, transparent 0%, var(--secondary-cream) 50%, transparent 100%);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
