/* Block Page Styles - Modern Design System */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #95a5a6;
    --background-primary: #ffffff;
    --background-secondary: #f8f9fa;
    --background-accent: #ecf0f1;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 16px rgba(0,0,0,0.12);
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* Hide scrollbar but keep scroll functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for webkit browsers */
html::-webkit-scrollbar {
    display: none;
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif; 
    margin: 0; 
    padding: 0; 
    background-color: var(--background-secondary); 
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-weight: 400;
    min-height: 100vh;
    height: auto !important;
    /* Hide scrollbar but keep scroll functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for webkit browsers */
body::-webkit-scrollbar {
    display: none;
}

/* Clean scrollbars - Hide but keep functionality */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 16px;
    padding: 4px 0;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
}

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

.header-content {
    margin-top: 0;
}

@media (max-width: 768px) {
    .header { margin-top: 12px; }
    .header-content { margin-top: 0; }
}

/* Search Section */
.search-section-main {
    background: var(--background-primary);
    padding: 20px;
    margin: 5px 0 15px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    min-height: 120px;
    display: flex;
    align-items: center;
}

/* High-specificity override to ensure the search section sits well below the fixed navbar.
   This rule uses !important to override any other stylesheet or inline rules that might
   be preventing the gap from taking effect. */
body .container > .search-section-main {
    /* enforce a small, consistent gap under the navbar */
    margin: calc(var(--navbar-height) + 8px) 0 32px 0 !important;
}

/* Reduce the extra top gap on smaller screens so the search stays visible */
@media (max-width: 768px) {
    .search-section-main { margin: 5px 0 10px 0; }
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
}

.search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.search-input-main {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--background-primary);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-main:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-btn-main {
    padding: 16px 24px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
}

.search-btn-main:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

/* Blocks Grid */
.blocks-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 10px;
    /* Ensure no height restrictions - show ALL blocks */
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

/* Large screen optimization */
@media (min-width: 1400px) {
    .blocks-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }
}

.block-card {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 160px;
    position: relative;
    overflow: hidden;
}

.block-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--secondary-color);
    z-index: 2; /* ensure hovered card sits above siblings when lifted */
}

.block-header {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.block-image {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius);
    background: var(--background-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.block-image img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    image-rendering: pixelated;
}

.block-icon {
    width: 64px;
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius);
    background: var(--background-accent);
    display: flex;
    align-items: center;
.pagination .nav-link {
    padding: 8px 12px;
    display: inline-block;
}
.pagination .nav-link.active {
    background: var(--secondary-color);
    color: #fff;
}
    justify-content: center;
    border: 1px solid var(--border-color);
    font-size: 2rem;
    flex-shrink: 0;
}

.block-title-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-title-area {
    text-align: center;
}

.block-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

/* No Blocks Message */
.no-blocks {
    text-align: center;
    padding: 80px 20px;
    background: var(--background-primary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-top: 48px;
    grid-column: 1 / -1;
}

.no-blocks h3 {
    color: var(--text-secondary);
    font-size: 1.5rem;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.no-blocks p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0 0 20px 0;
}

.no-blocks .nav-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.no-blocks .nav-link:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

/* Background Slideshow */
.background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-accent) 100%);
}

.background-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.background-slide.active {
    opacity: 0.1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 0;
    padding: 30px 20px;
    background: var(--accent-color);
    color: white;
    position: relative;
    box-shadow: var(--shadow-light);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.header-image {
    width: 120px;
    height: 120px;
    background: var(--background-primary);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-medium);
}

.header-image img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    image-rendering: pixelated;
}

.header-image-fallback {
    font-size: 4rem;
    color: var(--accent-color);
    font-weight: bold;
}

.header-text {
    text-align: left;
    flex: 1;
    min-width: 200px;
}

.header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

.header-category {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin: 8px 0 0 0;
    font-weight: 600;
    background: var(--background-primary);
    padding: 6px 12px;
    border-radius: var(--border-radius);
    display: inline-block;
    border: 1px solid var(--accent-color);
    box-shadow: var(--shadow-light);
}

.header-actions {
    flex-shrink: 0;
}

.report-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-light);
}

.report-button:hover {
    background: #34495e;
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-top: 30px;
}

/* Main Content */
.main-content {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.description-section {
    margin-bottom: 30px;
}

.description-section:last-child {
    margin-bottom: 0;
}

.description-section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--success-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.4rem;
}

.description-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--background-accent);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

/* Recipes Section */
.recipes-section {
    margin-top: 40px;
}

.recipes-section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--success-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 1.4rem;
}

.recipe-card {
    background: var(--background-primary);
    border: 1px solid var(--warning-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--warning-color);
}

.recipe-content {
    width: 100%;
}

.recipe-header {
    margin-bottom: 15px;
}

.recipe-type {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--background-accent);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    cursor: help;
}

.recipe-type-icon {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
}

.recipe-type-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: var(--shadow-medium);
    font-weight: normal;
}

.recipe-type-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary-color);
}

.recipe-type:hover .recipe-type-tooltip {
    opacity: 1;
    visibility: visible;
}

.crafting-interface {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: var(--background-accent);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin: 15px 0;
}

.crafting-grid {
    display: grid;
    grid-template-columns: repeat(3, 40px);
    grid-template-rows: repeat(3, 40px);
    gap: 2px;
    padding: 8px;
    background: var(--background-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.grid-slot {
    width: 40px;
    height: 40px;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
}

.grid-slot:hover {
    background: var(--background-accent);
}

.grid-slot img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    object-fit: contain;
}

.grid-slot.empty {
    background: var(--background-secondary);
    opacity: 0.7;
}

.recipe-arrow {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.recipe-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.result-slot {
    width: 50px;
    height: 50px;
    background: var(--background-primary);
    border: 2px solid var(--success-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
}

.result-slot img {
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
    object-fit: contain;
}

.result-count {
    background: var(--success-color);
    color: white;
    padding: 4px 8px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
}

.smelting-interface {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: var(--background-accent);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin: 15px 0;
}

.furnace-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.furnace-input,
.furnace-fuel {
    width: 40px;
    height: 40px;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.furnace-input img,
.furnace-fuel img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    object-fit: contain;
}

.ingredient-list {
    margin-top: 15px;
    padding: 15px;
    background: var(--background-accent);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.ingredient-list h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1rem;
}

.ingredient-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.ingredient-item:last-child {
    border-bottom: none;
}

.ingredient-item img {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    object-fit: contain;
}

.ingredient-item span {
    color: var(--text-primary);
    font-weight: 500;
}

.recipe-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 15px 0;
}

.no-recipes {
    background: var(--background-accent);
    padding: 30px;
    text-align: center;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-style: italic;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
    box-shadow: var(--shadow-medium);
}

.info-card h3 {
    margin: 0 0 16px 0;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

.property-grid {
    display: grid;
    gap: 8px;
}

.property-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--background-secondary);
}

.property-item:last-child {
    border-bottom: none;
}

.property-item-vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--background-secondary);
    gap: 6px;
}

.property-item-vertical:last-child {
    border-bottom: none;
}

.property-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.property-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-align: right;
}

.property-item-vertical .property-value {
    text-align: left;
    width: 100%;
}

/* Property Badges */
.biome-list, .structure-list {
    background: var(--background-accent);
    color: var(--secondary-color);
    padding: 4px 8px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    border: 1px solid var(--secondary-color);
    display: inline-block;
}

.structure-list {
    color: var(--warning-color);
    border-color: var(--warning-color);
}

.light-level {
    background: var(--background-accent);
    color: var(--warning-color);
    padding: 4px 8px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    border: 1px solid var(--warning-color);
    font-weight: 600;
}

.category-badge {
    background: var(--background-accent);
    color: var(--success-color);
    padding: 4px 8px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    border: 1px solid var(--success-color);
    text-transform: capitalize;
    font-weight: 500;
}

/* Tooltips */
.tooltip-trigger {
    position: relative;
    cursor: help;
}

.property-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: var(--shadow-medium);
    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
}

/* Tooltip positioning adjustments for edge cases */
.tooltip-trigger:first-child .property-tooltip {
    left: 0;
    transform: translateX(0);
}

.tooltip-trigger:last-child .property-tooltip {
    left: auto;
    right: 0;
    transform: translateX(0);
}

/* For tooltips that might extend beyond viewport */
@media (max-width: 768px) {
    .property-tooltip {
        max-width: 200px;
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    .tooltip-trigger .property-tooltip {
        left: 0;
        right: 0;
        transform: none;
        margin: 0 10px;
    }
}

.property-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary-color);
}

.tooltip-trigger:hover .property-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--background-primary);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow-medium);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.close:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--background-primary);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.form-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 100px;
}

.form-actions button[type="submit"] {
    background: var(--accent-color);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.form-actions button[type="button"] {
    background: var(--text-secondary);
    color: white;
}

.form-actions button[type="button"]:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

/* Medium screen optimization */
@media (max-width: 1200px) and (min-width: 769px) {
    .blocks-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .blocks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 5px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-text {
        text-align: center;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .header-image {
        width: 100px;
        height: 100px;
    }
    
    .header-image img {
        width: 80px;
        height: 80px;
    }
    
    .main-content,
    .info-card {
        padding: 20px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .description-section h2,
    .recipes-section h2 {
        font-size: 1.2rem;
    }
    
    .property-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .property-value {
        text-align: left;
    }
    
    .pagination-container {
        margin-top: 20px;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .pagination-info {
        font-size: 0.9rem;
        text-align: center;
    }
}

/* Pagination Styles */
.pagination-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 16px;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 44px;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.pagination-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
    border-color: var(--secondary-color);
}

.pagination-current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    cursor: default;
    box-shadow: var(--shadow-medium);
}

.pagination-prev,
.pagination-next {
    font-weight: 600;
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.pagination-prev:hover,
.pagination-next:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.pagination-ellipsis {
    padding: 10px 16px;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
    font-weight: 500;
    background: var(--background-accent);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}
