* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f97316;
    --primary-dark: #ea580c;
    --secondary-color: #fb923c;
    --accent-color: #f59e0b;
    --pet-blue: #3b82f6;
    --pet-green: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #fef3e2;
    --bg-white: #ffffff;
    --border-color: #fed7aa;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(249, 115, 22, 0.15);
    --shadow-lg: 0 10px 15px -3px rgba(249, 115, 22, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(249, 115, 22, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: linear-gradient(135deg, #fef3e2 0%, #fed7aa 50%, #fbbf24 100%);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(251, 146, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Hero Section */
.hero-section {
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fbbf24 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.paw-prints {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
}

.paw-prints-top {
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle, white 2px, transparent 2px);
    background-size: 60px 60px;
    background-position: 10% 20%, 30% 15%, 50% 25%, 70% 20%, 90% 18%;
}

.paw-prints-bottom {
    bottom: 0;
    right: 0;
    background-image: 
        radial-gradient(circle, white 2px, transparent 2px);
    background-size: 60px 60px;
    background-position: 15% 80%, 35% 85%, 55% 75%, 75% 80%, 95% 82%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.pet-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
    display: inline-block;
}

.pet-emoji-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pet-emoji {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
    display: inline-block;
}

.pet-emoji:nth-child(1) { animation-delay: 0s; }
.pet-emoji:nth-child(2) { animation-delay: 0.5s; }
.pet-emoji:nth-child(3) { animation-delay: 1s; }
.pet-emoji:nth-child(4) { animation-delay: 1.5s; }

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

.site-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #ffffff 0%, #fef3e2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Statistics Dashboard */
.stats-dashboard {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Container */
.container {
    background: var(--bg-light);
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 1;
}

/* Controls Section */
.controls-section {
    max-width: 1200px;
    margin: 0 auto 3rem;
}

/* Filters Toggle */
.filters-toggle-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 2rem;
}

.filters-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.filters-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.toggle-icon {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.toggle-text {
    font-size: 1rem;
}

/* Filters Section */
.filters-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    max-height: 1000px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filters-section.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    opacity: 0;
    pointer-events: none;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.category-filters, .species-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-select:hover, .sort-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.favorites-toggle {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
}

.favorites-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Alphabet Index */
.alphabet-index {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.alphabet-btn {
    width: 35px;
    height: 35px;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-family: inherit;
}

.alphabet-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.alphabet-btn.available {
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.alphabet-btn.unavailable {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Search Suggestions */
.search-wrapper {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Search Container */
.search-container {
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-color);
    transform: scale(1.01);
}

.search-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: transparent;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-clear {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.search-clear:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.results-count {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.ingredients-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
}

.ingredients-grid::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Ingredient Card */
.ingredient-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.card-favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.card-favorite-btn:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 1);
}

.card-favorite-btn.active {
    background: linear-gradient(135deg, #ec4899, #f97316);
    color: white;
}

.ingredient-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--pet-blue), var(--pet-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.ingredient-card::after {
    content: '🐾';
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.ingredient-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #fef3e2 100%);
}

.ingredient-card:hover::before {
    transform: scaleX(1);
}

.ingredient-card:hover::after {
    opacity: 0.3;
    transform: scale(1);
}

.ingredient-visual-container {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ingredient-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.form-indicator {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.ingredient-card:hover .ingredient-icon {
    transform: scale(1.1) rotate(5deg);
}

.ingredient-card:hover .form-indicator {
    transform: scale(1.1);
}

.category-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    border: 2px solid;
    color: var(--text-primary);
}

.ingredient-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.ingredient-species {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ingredient-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ingredient-card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.875rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.ingredient-card:hover .ingredient-card-footer {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
    margin: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.close-btn:hover {
    background: var(--bg-light);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem 0;
    position: relative;
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
}

.modal-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-action-btn:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
    background: var(--bg-light);
}

.modal-action-btn.active {
    background: linear-gradient(135deg, #ec4899, #f97316);
    border-color: var(--primary-color);
    color: white;
}

.modal-body {
    padding: 3rem;
}

/* Related Ingredients */
.related-ingredients {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.related-ingredient-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.related-ingredient-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.about-section.active {
    opacity: 1;
    visibility: visible;
}

.about-content {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 3rem;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.about-section.active .about-content {
    transform: scale(1);
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-content ul {
    list-style: none;
    padding-left: 0;
}

.about-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.about-content li::before {
    content: '🐾';
    position: absolute;
    left: 0;
}

.close-about {
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: inherit;
}

.close-about:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.about-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: 3px solid white;
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.about-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Dark Mode */
body.dark-mode {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --bg-light: #1f2937;
    --bg-white: #374151;
    --border-color: #4b5563;
    background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #374151 100%);
}

body.dark-mode .hero-section {
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%);
}

body.dark-mode .filter-btn,
body.dark-mode .alphabet-btn,
body.dark-mode .sort-select {
    background: var(--bg-white);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.dark-mode .filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

body.dark-mode .search-wrapper,
body.dark-mode .filters-section {
    background: var(--bg-white);
}

body.dark-mode .modal-content {
    background: var(--bg-white);
    color: var(--text-primary);
}

body.dark-mode .modal-disclaimer {
    background: rgba(55, 65, 81, 0.5);
    border-left-color: var(--primary-color);
}

body.dark-mode .modal-disclaimer-text {
    color: var(--text-primary);
}

body.dark-mode .modal-disclaimer-text strong {
    color: var(--primary-color);
}

body.dark-mode .ingredient-card {
    background: var(--bg-white);
    border-color: var(--border-color);
}

body.dark-mode .ingredient-card:hover {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-color: var(--primary-color);
}

body.dark-mode .card-favorite-btn {
    background: rgba(55, 65, 81, 0.9);
}

body.dark-mode .card-favorite-btn:hover {
    background: rgba(55, 65, 81, 1);
}

@keyframes highlight {
    0%, 100% {
        box-shadow: var(--shadow-md);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.3);
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    border-left: 4px solid var(--primary-color);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.toast-close:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

/* Toast Types */
.toast-success {
    border-left-color: var(--pet-green);
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-warning {
    border-left-color: var(--accent-color);
}

.toast-info {
    border-left-color: var(--pet-blue);
}

.toast-favorite {
    border-left-color: #ec4899;
}

.toast-share {
    border-left-color: var(--pet-blue);
}

/* Dark Mode Toasts */
body.dark-mode .toast {
    background: var(--bg-white);
    color: var(--text-primary);
}

body.dark-mode .toast-close:hover {
    background: var(--bg-light);
}

/* Responsive Toasts */
@media (max-width: 768px) {
    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

.modal-visual-container {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
}

.modal-form-indicator {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 4px solid var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.modal-category-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    border: 2px solid;
    color: var(--text-primary);
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-species {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.modal-list {
    list-style: none;
    padding-left: 0;
}

.modal-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.modal-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Disclaimer Footer */
.disclaimer-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.disclaimer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.disclaimer-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.disclaimer-text {
    font-size: 0.875rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 900px;
}

.disclaimer-text strong {
    font-weight: 600;
    opacity: 1;
}

/* Modal Disclaimer */
.modal-disclaimer {
    background: #fef3e2;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 2rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.modal-disclaimer-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.modal-disclaimer-text {
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.modal-disclaimer-text strong {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: 3px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    animation: pawBounce 0.6s ease;
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

@keyframes pawBounce {
    0%, 100% {
        transform: translateY(-5px) scale(1.1);
    }
    50% {
        transform: translateY(-10px) scale(1.15);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .site-title {
        font-size: 2.25rem;
    }
    
    .site-subtitle {
        font-size: 1rem;
    }
    
    .search-container {
        margin-bottom: 2rem;
    }
    
    .ingredients-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-content {
        margin: 1rem;
        border-radius: 16px;
    }
    
    .modal-body {
        padding: 2rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .disclaimer-footer {
        padding: 1.5rem 1rem;
    }
    
    .disclaimer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .disclaimer-text {
        font-size: 0.8125rem;
    }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Comparison Tool */
.comparison-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.comparison-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.comparison-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comparison-icon {
    font-size: 1.5rem;
}

.comparison-count {
    font-size: 1.5rem;
    font-weight: 700;
}

.comparison-text {
    font-size: 1rem;
    opacity: 0.95;
}

.comparison-actions {
    display: flex;
    gap: 1rem;
}

.comparison-view-btn,
.comparison-clear-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid white;
    border-radius: 8px;
    background: transparent;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.9375rem;
}

.comparison-view-btn {
    background: white;
    color: var(--primary-color);
}

.comparison-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.comparison-clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.card-compare-btn {
    position: absolute;
    top: 1rem;
    right: 3.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.card-compare-btn:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 1);
}

.card-compare-btn.active {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.comparison-modal-content {
    max-width: 1400px;
    width: 95%;
}

.comparison-modal-body {
    padding: 2rem;
}

.comparison-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1rem;
}

.comparison-item {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.comparison-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.comparison-remove {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.comparison-remove:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.comparison-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.comparison-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.comparison-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.comparison-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid;
    color: var(--text-primary);
}

.comparison-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparison-detail-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 100px;
    font-size: 0.875rem;
}

.detail-value {
    color: var(--text-primary);
    flex: 1;
    font-size: 0.875rem;
}

.comparison-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.comparison-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.comparison-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.comparison-list li {
    padding: 0.375rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.comparison-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.comparison-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

body.dark-mode .comparison-item {
    background: var(--bg-white);
    border-color: var(--border-color);
}

body.dark-mode .comparison-remove {
    background: var(--bg-light);
}

body.dark-mode .comparison-remove:hover {
    background: #ef4444;
}

@media (max-width: 768px) {
    .comparison-bar {
        padding: 1rem;
    }
    
    .comparison-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .comparison-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .comparison-view-btn,
    .comparison-clear-btn {
        flex: 1;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-compare-btn {
        right: 3rem;
    }
}

