/* ============================================
   KOKANDUS_PRO.CSS - Additional Styles
   Recipe view modal + Admin buttons
   ============================================ */

/* Recipe View Modal */
.recipe-view-elegant {
    max-width: 900px;
    margin: 0 auto;
}

.recipe-hero-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.recipe-header-view {
    text-align: center;
    margin-bottom: 3rem;
}

.recipe-header-view h2 {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: #2c2c2c;
}

.recipe-meta-view {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.recipe-meta-view span {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.recipe-intro-view {
    font-size: 1.2rem;
    color: #555;
    font-style: italic;
    max-width: 700px;
    margin: 1.5rem auto;
    line-height: 1.8;
}

.recipe-rating-view {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.recipe-rating-view .rating-stars {
    font-size: 1.5rem;
}

.recipe-rating-view span {
    color: #666;
    font-weight: 600;
}

/* Interactive Rating */
.rating-stars.interactive {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.rating-stars.interactive .star {
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.rating-stars.interactive .star:hover {
    transform: scale(1.2);
    opacity: 1;
}

/* Admin Actions in Recipe View */
.recipe-admin-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.btn-edit-elegant,
.btn-delete-elegant {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-edit-elegant {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-edit-elegant:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-delete-elegant {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn-delete-elegant:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

/* Recipe Body */
.recipe-body-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.recipe-section h3 {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recipe-section ul,
.recipe-section ol {
    list-style-position: inside;
    padding: 0;
}

.recipe-section li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    color: #444;
    font-size: 1.05rem;
    line-height: 1.6;
}

.recipe-section li:last-child {
    border-bottom: none;
}

.recipe-section ol {
    counter-reset: step-counter;
    list-style: none;
}

.recipe-section ol li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3rem;
}

.recipe-section ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Recipe Footer Actions */
.recipe-footer-view {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.btn-print-elegant,
.btn-share-elegant {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-print-elegant {
    background: #607D8B;
    color: white;
}

.btn-print-elegant:hover {
    background: #546E7A;
    transform: translateY(-2px);
}

.btn-share-elegant {
    background: #2196F3;
    color: white;
}

.btn-share-elegant:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

/* Recipe Card View Button */
.btn-view-elegant {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-view-elegant:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Chef's Choice Badge */
.recipe-badge.chef-choice {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-weight: bold;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Recipe Modal Overlay */
.modal-recipe-view {
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Scrollbar Styling */
.modal-recipe-view::-webkit-scrollbar {
    width: 8px;
}

.modal-recipe-view::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-recipe-view::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.modal-recipe-view::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .recipe-hero-image {
        height: 250px;
    }
    
    .recipe-header-view h2 {
        font-size: 1.8rem;
    }
    
    .recipe-body-view {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .recipe-meta-view {
        gap: 1rem;
    }
    
    .recipe-meta-view span {
        font-size: 0.95rem;
    }
    
    .recipe-admin-actions,
    .recipe-footer-view {
        flex-direction: column;
    }
    
    .recipe-admin-actions button,
    .recipe-footer-view button {
        width: 100%;
    }
    
    .recipe-section ol li {
        padding-left: 2.5rem;
    }
    
    .recipe-section ol li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.8rem;
    }
}

/* Toast Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading State */
.loading-elegant {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.spinner-elegant {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.loading-elegant p {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Print Styles */
@media print {
    .recipe-admin-actions,
    .recipe-footer-view,
    .rating-stars.interactive,
    .modal-close-elegant {
        display: none !important;
    }
    
    .recipe-view-elegant {
        padding: 0;
    }
    
    .recipe-body-view {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   MOBILE MENU FIX - Lisa seda oma main.css-i
   ============================================ */

/* Mobiilse menüü toggle nupp */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animatsioon avatud menüüle */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobiilne vaade */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-primary);
    flex-direction: column;
    padding: var(--spacing-xl);
    gap: var(--spacing-md);
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateX(0);
    opacity: 1;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: var(--spacing-md);
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--glass-bg);
    color: var(--accent-green);
  }

  /* Desktop keelevalik peidetud mobiilis */
  #language-buttons {
    display: none;
  }

  /* Mobiilne keelevalik nähtav */
  .language-menu-mobile {
    display: block !important;
    width: 100%;
    padding: var(--spacing-md);
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
  }

  .mobile-lang-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
  }

  .mobile-lang-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

  .lang-btn-mobile {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .lang-btn-mobile:hover,
  .lang-btn-mobile.active {
    background: var(--accent-green);
    color: var(--bg-primary);
    border-color: var(--accent-green);
  }

  /* Hero section kohandus ilma pildita */
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .cta-group {
    justify-content: center;
  }
}

/* Desktop vaade */
@media (min-width: 769px) {
  .language-menu-mobile {
    display: none;
  }
}

/* Body scroll lock kui menüü on avatud */
body.menu-open {
  overflow: hidden;
}

/* ============================================
   HERO SECTION ILMA PILDITA
   ============================================ */

.hero-content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-text {
  max-width: 100%;
}

/* Eemaldame .hero-image ja .profile-container klassid */
.hero-image,
.profile-container,
.profile-ring,
.profile-photo {
  display: none !important;
}