/* ================================
   Global Styles & Reset
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c2f711;
    --secondary-color: #5e5e5e;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ================================
   Animated Background
   ================================ */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape1 {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape2 {
    width: 120px;
    height: 120px;
    background: var(--secondary-color);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.shape3 {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 20px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
    transform: rotate(45deg);
}

.shape4 {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    top: 30%;
    left: 70%;
    animation-delay: 1s;
}

.shape5 {
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    border-radius: 50% 50% 0 50%;
    top: 50%;
    left: 5%;
    animation-delay: 3s;
}

.shape6 {
    width: 90px;
    height: 90px;
    background: var(--secondary-color);
    border-radius: 50%;
    top: 15%;
    left: 90%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
    }
    50% {
        transform: translateY(-60px) rotate(-5deg);
    }
    75% {
        transform: translateY(-30px) rotate(3deg);
    }
}

/* ================================
   Header Styles
   ================================ */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo i {
    color: var(--primary-color);
    font-size: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-converter {
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 0.6rem 1.5rem !important;
    border-radius: 25px;
    font-weight: 600;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* ================================
   Hero Section
   ================================ */
.hero {
    padding: 6rem 0 4rem;
    position: relative;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.btn-primary {
    background: var(--primary-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(194, 247, 17, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #4a4a4a;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ================================
   Converter Section
   ================================ */
.converter-section {
    padding: 4rem 0;
    background: var(--white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.converter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    background: var(--light-bg);
    border: 2px solid transparent;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.converter-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.converter-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.converter-card > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.converter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(194, 247, 17, 0.1);
}

.result-field {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--text-dark);
}

.btn-convert {
    margin-top: 1rem;
}

/* Batch Converter Styles */
.batch-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.batch-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.btn-remove {
    background: var(--danger-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* Recipe Parser Styles */
.recipe-parser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.recipe-input-section,
.recipe-output-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recipe-input-section label,
.recipe-output-section label {
    font-weight: 600;
    color: var(--text-dark);
}

.recipe-textarea {
    min-height: 300px;
    resize: vertical;
    font-family: 'Courier New', monospace;
}

.recipe-output {
    min-height: 300px;
    padding: 1.5rem;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
}

.placeholder-text {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    margin-top: 6rem;
}

/* ================================
   Content Guide Section
   ================================ */
.guide-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.content-block {
    background: var(--white);
    padding: 3rem;
    margin-bottom: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.content-block h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    border-left: 5px solid var(--primary-color);
    padding-left: 1rem;
}

.content-block h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.content-block h4 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.content-block p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.content-block ul,
.content-block ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-block li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
    color: var(--text-light);
}

.highlight-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px solid var(--primary-color);
}

.formula-display {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-size: 1.3rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

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

.example-list li {
    background: var(--white);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.steps-list {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.steps-list li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: var(--text-dark);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.example-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--secondary-color);
}

.tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    margin-top: 1rem;
}

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

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.benefit-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

/* Tables Section */
.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.table-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.table-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.table-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-align: center;
}

.conversion-table {
    width: 100%;
    border-collapse: collapse;
}

.conversion-table thead {
    background: var(--primary-color);
}

.conversion-table th {
    padding: 0.8rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
}

.conversion-table td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.conversion-table tbody tr:hover {
    background: var(--light-bg);
}

.quick-reference {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.ingredient-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.ingredient-list li {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

/* Ingredient Grid */
.ingredient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.ingredient-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.ingredient-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.ingredient-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.ingredient-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.density {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.density-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.note {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.comparison-card:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.comparison-card h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.warning-text {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--warning-color);
    margin-top: 1.5rem;
}

/* Sugar Types */
.sugar-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.sugar-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border-top: 4px solid var(--primary-color);
}

/* Numbered Benefits */
.numbered-benefits {
    counter-reset: benefit-counter;
    list-style: none;
    padding-left: 0;
}

.numbered-benefits li {
    counter-increment: benefit-counter;
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2rem;
}

.numbered-benefits li::before {
    content: counter(benefit-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: var(--text-dark);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.numbered-benefits strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cta-text {
    background: var(--primary-color);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    margin-top: 2rem;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tip-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tip-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tip-card h4 {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

/* Recipe Examples */
.recipe-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.recipe-example-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
}

.recipe-example-card h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.recipe-example-card h4 i {
    color: var(--primary-color);
}

.recipe-example-card ul {
    list-style: none;
    padding-left: 0;
}

.recipe-example-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cta-box {
    background: var(--primary-color);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 2rem;
    font-weight: 600;
}

.cta-box a {
    color: var(--text-dark);
    text-decoration: underline;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* References List */
.references-list {
    list-style: none;
    padding-left: 0;
}

.references-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.references-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.note-text {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    font-style: italic;
    margin-top: 1.5rem;
}

/* FAQ Section */
.faq-section {
    background: var(--white);
}

.faq-container {
    margin-top: 2rem;
}

.faq-item {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ================================
   Footer Styles
   ================================ */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--primary-color);
    font-size: 2rem;
}

.footer-description {
    color: #b0b0b0;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #b0b0b0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--secondary-color);
    padding-top: 2rem;
    text-align: center;
    color: #b0b0b0;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .nav-list.active {
        left: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .converter-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .batch-item {
        grid-template-columns: 1fr;
    }

    .batch-actions {
        flex-direction: column;
    }

    .recipe-parser-grid {
        grid-template-columns: 1fr;
    }

    .table-grid {
        grid-template-columns: 1fr;
    }

    .ingredient-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .recipe-examples {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .content-block {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .converter-card {
        padding: 1rem;
    }

    .content-block {
        padding: 1rem;
    }

    .content-block h2 {
        font-size: 1.5rem;
    }

    .ingredient-grid {
        grid-template-columns: 1fr;
    }
}

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

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: var(--text-dark);
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
