/* ============================================
   TAILWIND CSS + BERRY TEMA
   Böğürtlen Teması
   ============================================ */

:root {
  --og-50: #fdf2f8;
  --og-100: #fce7f3;
  --og-200: #fbcfe8;
  --og-300: #f9a8d4;
  --og-400: #f472b6;
  --og-500: #ec4899;
  --og-600: #db2777;
  --og-700: #be185d;
  --og-800: #9d174d;
  --og-900: #831843;
  --og-950: #500724;
}

/* Shadow & Backdrop Colors */
--og-shadow: rgba(190, 24, 93, 0.25);
--og-backdrop: rgba(131, 24, 67, 0.5);

/* Custom Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-fadeIn { animation: fadeIn 0.5s ease forwards; }
.animate-slideIn { animation: slideIn 0.5s ease forwards; }
.animate-bounce { animation: bounce 1s ease infinite; }
.animate-pulse { animation: pulse 2s ease infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* Smooth Scroll */
html { scroll-behavior: smooth; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--og-100); }
::-webkit-scrollbar-thumb { background: var(--og-400); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--og-500); }

/* Form Element Focus States */
input:focus, select:focus, textarea:focus {
  outline: none;
  ring: 2px;
  ring-color: var(--og-400);
  border-color: var(--og-400);
}

/* Phone Input Mask Styling */
.phone-mask::placeholder { color: var(--og-600); }

/* Product Card Hover */
.product-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(190, 24, 93, 0.25);
}

/* Category Link Active State */
.category-link { transition: all 0.2s ease; }
.category-link:hover {
  background: var(--og-100);
  color: var(--og-800);
}
.category-link.active {
  background: var(--og-200);
  color: var(--og-900);
  font-weight: 600;
}

/* Pagination Styles */
.pagination-btn { transition: all 0.2s ease; }
.pagination-btn:hover {
  background: var(--og-100);
  color: var(--og-800);
}
.pagination-btn.active {
  background: var(--og-500);
  color: white;
}

/* Payment Option */
.payment-option { transition: all 0.2s ease; }
.payment-option:hover {
  border-color: var(--og-400);
  background: var(--og-50);
}
.payment-option.active {
  border-color: var(--og-500);
  background: var(--og-100);
}

/* Modal Backdrop */
.modal-backdrop {
  background: rgba(131, 24, 67, 0.5);
  backdrop-filter: blur(4px);
}

/* Sticky Sidebar */
@media (min-width: 1024px) {
  .sticky-sidebar { position: sticky; top: 5rem; }
}

/* Mobile Category Accordion */
.category-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.category-accordion-content.open { max-height: 500px; }

/* Order Status Steps */
.status-step { position: relative; }
.status-step::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  width: 100%;
  height: 2px;
  background: var(--og-200);
  transform: translateY(-50%);
}
.status-step:last-child::before { display: none; }
.status-step.completed::before { background: var(--og-500); }

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  background: var(--og-800);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Loading Spinner */
.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--og-200);
  border-top-color: var(--og-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Print Styles */
@media print {
  .no-print { display: none !important; }
}

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

/* ============================================
   FOOTER STYLES - Theme Aware
   ============================================ */

.site-footer {
  background: var(--og-900, #1e1a06);
  color: var(--og-200, #efe3a9);
}

.site-footer .footer-title {
  color: white;
}

.site-footer .footer-text {
  color: var(--og-300, #e7d57e);
}

.site-footer .footer-link {
  color: var(--og-300, #e7d57e);
}

.site-footer .footer-link:hover {
  color: white;
}

.site-footer .footer-bottom {
  border-color: var(--og-800, #564a10);
}

.site-footer .footer-copyright {
  color: var(--og-400, #dec754);
}

.site-footer .footer-copyright span {
  color: white;
}

.site-footer .footer-icon-box {
  background: linear-gradient(to bottom right, var(--og-400, #dec754), var(--og-600, #ab9421));
}

/* ============================================
   THEME COLOR HELPERS
   ============================================ */

.theme-bg-light {
  background: var(--og-50, #fbf8ea);
}

.theme-bg-primary {
  background: var(--og-500, #d6b929);
}

.theme-text-primary {
  color: var(--og-600, #ab9421);
}

.theme-text-dark {
  color: var(--og-900, #564a10);
}

.theme-border {
  border-color: var(--og-200, #efe3a9);
}

/* ============================================
   PAGINATION FIX - Ensure visibility on all themes
   ============================================ */

.pagination-btn {
  transition: all 0.2s ease;
  background: white;
  color: var(--og-600, #ab9421);
  border-color: var(--og-200, #efe3a9);
}

.pagination-btn:hover {
  background: var(--og-100, #f7f1d4);
  color: var(--og-800, #564a10);
  border-color: var(--og-300, #e7d57e);
}

.pagination-btn.active {
  background: var(--og-500, #d6b929);
  color: white;
  border-color: var(--og-500, #d6b929);
}

/* Make sure active pagination has white text */
.pagination-btn.active,
.pagination-btn.active:hover {
  color: white !important;
}

/* ============================================
   NAVBAR & HEADER THEME SUPPORT
   ============================================ */

/* Navbar link colors based on theme */
.nav-link-theme {
  color: var(--og-700, #816f18);
}

.nav-link-theme:hover {
  color: var(--og-500, #d6b929);
}

/* ============================================
   PRODUCT & CONTENT CARDS THEME SUPPORT  
   ============================================ */

.theme-card-border {
  border-color: var(--og-100, #f7f1d4);
}

.theme-badge {
  background: var(--og-500, #d6b929);
  color: white;
}

.theme-price {
  color: var(--og-600, #ab9421);
}

.theme-button {
  background: var(--og-500, #d6b929);
  color: white;
}

.theme-button:hover {
  background: var(--og-600, #c4a824);
}

/* ============================================
   CATEGORY SIDEBAR THEME SUPPORT
   ============================================ */

.category-sidebar-header {
  background: linear-gradient(to right, var(--og-400, #dec754), var(--og-500, #d6b929));
  color: white;
}

.category-link-theme {
  color: var(--og-700, #816f18);
}

.category-link-theme:hover {
  background: var(--og-100, #f7f1d4);
  color: var(--og-800, #564a10);
}

.category-link-theme.active {
  background: var(--og-200, #efe3a9);
  color: var(--og-900, #564a10);
}

/* ============================================
   POPULAR PRODUCTS SECTION THEME SUPPORT
   ============================================ */

.popular-section-bg {
  background: linear-gradient(to right, var(--og-50, #fbf8ea), white, var(--og-50, #fbf8ea));
  border-bottom-color: var(--og-100, #f7f1d4);
}

.popular-icon-box {
  background: linear-gradient(to bottom right, var(--og-400, #dec754), var(--og-600, #ab9421));
}

.popular-title {
  color: var(--og-900, #564a10);
}

.popular-subtitle {
  color: var(--og-600, #ab9421);
}

.popular-link {
  color: var(--og-600, #ab9421);
}

.popular-link:hover {
  color: var(--og-800, #564a10);
}

.popular-card {
  border-color: var(--og-100, #f7f1d4);
}

.popular-badge {
  background: var(--og-500, #d6b929);
  color: white;
}

.popular-price {
  color: var(--og-600, #ab9421);
}
