/* UrbanVegBalcony Custom Styles */

/* Custom Tailwind Configuration */
:root {
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
}

/* Unique Layout Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-gentle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes slide-in-left {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-right {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Hero Section Enhancements */
.hero-bg {
    background: linear-gradient(135deg,
        var(--green-600) 0%,
        var(--emerald-600) 50%,
        var(--green-700) 100%);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Card Hover Effects */
.garden-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.garden-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Unique Navigation */
.nav-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Interactive Elements */
.btn-primary {
    background: linear-gradient(135deg, var(--green-600), var(--emerald-600));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
}

/* Unique Section Layouts */
.section-diagonal {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.section-wave {
    position: relative;
}

.section-wave::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, var(--green-50), var(--emerald-50));
    border-radius: 50% 50% 0 0;
    z-index: -1;
}

/* Content Blocks */
.content-block {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 197, 94, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Icon Animations */
.icon-float {
    animation: float 3s ease-in-out infinite;
}

.icon-pulse {
    animation: pulse-gentle 2s ease-in-out infinite;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-bg {
        background: linear-gradient(to bottom, var(--green-600), var(--emerald-600));
    }

    .section-diagonal {
        clip-path: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.btn-primary:focus,
.garden-card:focus {
    outline: 2px solid var(--green-400);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .nav-blur,
    .btn-primary,
    footer {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .content-block {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .garden-card {
        border: 2px solid var(--green-600);
    }

    .btn-primary {
        border: 2px solid white;
    }
}

/* Color Scheme Adjustments for Different Times */
@media (prefers-color-scheme: dark) {
    /* Optional dark mode support - keeping light theme as primary */
    .garden-card {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* Custom Scrollbar (but user requested not to modify) */
/* Keeping default browser scrollbar as requested */

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading-shine 2s infinite;
}

@keyframes loading-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Form Enhancements */
.form-input {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.form-input:focus {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    animation: slide-in-right 0.3s ease-out;
}

.notification.success {
    background: var(--green-500);
    color: white;
}

.notification.error {
    background: #ef4444;
    color: white;
}

.notification.info {
    background: var(--blue-500);
    color: white;
}

/* Unique Layout Classes */
.layout-grid-unique {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
}

.layout-grid-unique::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Vegetable Cards Special Layout */
.veg-card {
    position: relative;
    overflow: hidden;
}

.veg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.veg-card:hover::before {
    opacity: 1;
}

/* Container Size Visualization */
.container-size {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--green-100);
    border-radius: 0.5rem;
    font-weight: 500;
    color: var(--green-800);
}

.container-size::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--green-100);
}

/* Seasonal Indicators */
.season-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.season-indicator.spring { background: var(--green-100); color: var(--green-800); }
.season-indicator.summer { background: var(--yellow-100); color: var(--yellow-800); }
.season-indicator.fall { background: var(--orange-100); color: var(--orange-800); }
.season-indicator.winter { background: var(--blue-100); color: var(--blue-800); }

/* Care Tip Highlights */
.care-tip {
    position: relative;
    padding-left: 1.5rem;
}

.care-tip::before {
    content: '🌱';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
}

/* Mobile Menu Animation */
.mobile-menu-enter {
    animation: slide-in-left 0.3s ease-out;
}

.mobile-menu-exit {
    animation: slide-in-left 0.3s ease-out reverse;
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bg-pattern {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}