/* Reset ve Temel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2e7d32;
    --secondary-green: #4caf50;
    --light-green: #e8f5e9;
    --white: #ffffff;
    --dark-gray: #333333;
    --light-gray: #f5f5f5;
    --gray: #757575;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --hygiene-green: #2e7d32;
    --certificate-gold: #ffd700;
    --footer-bg: #424242;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-container {
    flex: 0 0 auto;
}

.logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.restaurant-name {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.restaurant-name h1 {
    font-family: 'Roboto Slab', serif;
    color: var(--primary-green);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.tagline {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Hero Section */
.hero {
    position: relative;
    margin-bottom: 40px;
}

.hero-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(104, 161, 107, 0.3));
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

.hero-overlay h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main Container */
.main-container {
    padding: 20px 0 50px;
}

.category-container {
    margin-bottom: 50px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.category-header {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 20px 30px;
    margin-bottom: 0;
    text-align: center;
}

.category-header h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.category-header i {
    font-size: 1.5rem;
}

/* Food Items Grid */
.food-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 30px;
}

.food-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
}

.food-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.15);
    border-color: var(--primary-green);
}

.food-image-container {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.food-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.food-item:hover .food-image {
    transform: scale(1.05);
}

.food-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.food-title {
    font-family: 'Roboto Slab', serif;
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.food-description {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
    text-align: justify;
}

.food-full-description {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 15px;
    padding: 15px;
    background-color: var(--light-green);
    border-radius: 8px;
    border-left: 3px solid var(--primary-green);
    text-align: justify;
}

.hygiene-note {
    background-color: var(--light-green);
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 3px solid var(--hygiene-green);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 0.85rem;
}

.hygiene-note i {
    color: var(--hygiene-green);
    font-size: 1rem;
}

.detail-btn-container {
    margin-top: 15px;
    text-align: center;
}

.detail-btn {
    padding: 12px 24px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    max-width: 200px;
}

.detail-btn:hover {
    background-color: var(--secondary-green);
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background-color: var(--white);
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    border-radius: var(--border-radius);
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.section-modal .modal-content {
    max-width: 800px;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    color: var(--white);
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-header {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 20px 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section-modal .modal-header {
    justify-content: flex-start;
    padding-left: 60px;
}

.back-btn {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-header h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-body {
    padding: 30px;
}

.modal-body {
    overflow-x: auto;
}

.detail-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-section-btn {
    padding: 15px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.detail-section-btn:hover {
    background-color: var(--secondary-green);
    transform: translateY(-2px);
}

/* Table Container */
.table-container {
    overflow-x: auto;
    margin-top: 10px;
}

/* Info Table Styles */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    min-width: 600px;
}

.info-table th, .info-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.info-table th {
    background-color: var(--light-green);
    color: var(--primary-green);
    font-weight: 600;
    white-space: nowrap;
}

.info-table td {
    background-color: var(--white);
    color: var(--dark-gray);
}

.supply-table th, .supply-table td {
    text-align: center;
    vertical-align: middle;
}

.supply-table th:nth-child(1),
.supply-table td:nth-child(1) {
    text-align: left;
    width: 20%;
}

.coldchain-table th, .coldchain-table td {
    text-align: center;
    vertical-align: middle;
}

.coldchain-table th:nth-child(1),
.coldchain-table td:nth-child(1) {
    text-align: left;
    width: 25%;
}

/* Certificate Card Styles */
.certificate-card {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border-radius: var(--border-radius);
    border: 2px solid var(--certificate-gold);
}

.certificate-icon {
    font-size: 3rem;
    color: var(--certificate-gold);
    margin-bottom: 20px;
}

.certificate-content h3 {
    color: var(--primary-green);
    margin-bottom: 15px;
    font-family: 'Roboto Slab', serif;
}

.certificate-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--dark-gray);
}

.certificate-stamp {
    padding: 15px;
    background-color: var(--light-green);
    border-radius: 8px;
    border-left: 4px solid var(--hygiene-green);
    display: inline-block;
    margin-top: 20px;
}

.certificate-stamp p {
    margin: 5px 0;
    color: var(--hygiene-green);
}

/* Footer Styles */
.footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-contact {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-contact h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-family: 'Roboto Slab', serif;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-green);
    width: 20px;
}

.footer-certificates {
    display: flex;
    justify-content: flex-start;
}

.certificates-box {
    background-color: var(--primary-green);
    padding: 20px;
    border-radius: var(--border-radius);
    max-width: 300px;
    width: 100%;
}

.certificate-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
}

.certificate-item i {
    color: var(--white);
    font-size: 1.2rem;
}

.certificate-item span {
    font-weight: 500;
}

.certificate-info {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
}

.certificate-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.qr-note {
    margin-top: 10px;
    font-style: italic;
    color: var(--primary-green);
    font-weight: 500;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logo {
        height: 60px;
    }
    
    .restaurant-name h1 {
        font-size: 1.5rem;
    }
    
    .hero-container {
        height: 300px;
    }
    
    .hero-overlay h2 {
        font-size: 1.8rem;
    }
    
    .hero-overlay p {
        font-size: 1rem;
    }
    
    .category-header {
        padding: 15px 20px;
    }
    
    .category-header h2 {
        font-size: 1.5rem;
    }
    
    .food-items-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .food-image-container {
        height: 180px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-certificates {
        justify-content: center;
    }
    
    .certificates-box {
        max-width: 100%;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .section-modal .modal-header {
        padding-left: 50px;
    }
    
    .back-btn {
        left: 15px;
    }
    
    .info-table th, .info-table td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .detail-section-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .restaurant-name h1 {
        font-size: 1.3rem;
    }
    
    .hero-container {
        height: 250px;
    }
    
    .hero-overlay h2 {
        font-size: 1.5rem;
    }
    
    .hero-overlay p {
        font-size: 0.9rem;
    }
    
    .category-header h2 {
        font-size: 1.3rem;
    }
    
    .food-content {
        padding: 15px;
    }
    
    .food-title {
        font-size: 1.2rem;
    }
    
    .food-description {
        font-size: 0.9rem;
    }
    
    .food-full-description {
        font-size: 0.85rem;
        padding: 12px;
    }
    
    .detail-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .section-modal .modal-header {
        padding-left: 45px;
    }
    
    .back-btn {
        width: 32px;
        height: 32px;
        left: 10px;
    }
    
    .certificates-box {
        padding: 15px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .header, .hero, .detail-btn, .footer {
        display: none;
    }
    
    .food-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}