/* Mobile-First Responsive Design - max-width: 899px */


/* Mobile Container */
.container {
    padding: 0 0.1px;
    max-width: 100%;
}

/* Enhanced Mobile Header with Hamburger Menu */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    min-height: 60px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.logo-image {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.logo-section h1 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.2;
}

/* Hide desktop navigation on mobile */
.desktop-nav {
    display: none;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: var(--bg-secondary);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Hamburger Lines */
.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-line:not(:last-child) {
    margin-bottom: 4px;
}

/* Hamburger Animation - Active State */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Menu */
.mobile-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.mobile-navigation.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-navigation li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-navigation li:last-child {
    border-bottom: none;
}

.mobile-navigation a {
    display: block;
    padding: 16px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.mobile-navigation a:hover,
.mobile-navigation a:focus {
    background-color: var(--bg-secondary);
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
    transform: translateX(4px);
}

/* Adjust body padding for mobile menu */
body {
    padding-top: 60px;
}

/* Educational Section Mobile Styling */
.educational-section {
    background: var(--white);
    padding: 32px 0;
}

.guide-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.guide-item {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.guide-item h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.guide-item p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Strategy Section Mobile */
.strategy-section {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.strategy-section h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
    text-align: center;
}

.strategy-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.strategy-tip {
    background: var(--white);
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border-left: 4px solid var(--success-color);
}

.strategy-tip h4 {
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

.strategy-tip p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* FAQ Section Mobile */
.faq-section {
    background: var(--bg-secondary);
    padding: 32px 0;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid var(--info-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.3;
}

.faq-item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Footer Mobile - Match Desktop Colors */
.main-footer {
    background: var(--primary-color); /* Same as desktop */
    color: var(--white);
    padding: 32px 0 16px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.footer-section {
    padding: 16px 0;
}

.footer-section h4 {
    margin-bottom: 12px;
    color: var(--white);
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 20px;
}

.footer-section li {
    margin: 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    text-align: center;
}

.disclaimer p,
.copyright p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 8px 0;
    opacity: 0.8;
}



/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: var(--primary-color);
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.main-navigation.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.main-navigation li {
    border-bottom: 1px solid var(--border-color);
}

.main-navigation li:last-child {
    border-bottom: none;
}

.main-navigation a {
    display: block;
    padding: 16px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a:active {
    background-color: var(--bg-secondary);
    color: var(--secondary-color);
}

/* Mobile Hero Section */
.hero-section {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.hero-section h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.5;
    opacity: 0.95;
}

.feature-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 300px;
    margin: 0 auto;
}

.highlight-item {
    text-align: center;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.highlight-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.highlight-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Fixed Mobile Navigation Tabs */
.calculator-navigation {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    position: sticky; /* Keep this as sticky */
    top: 0px; /* Stay below the fixed header */
    z-index: 999; /* Lower than header */
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    /* Prevent vertical expansion */
    min-height: 60px;
    max-height: 60px;
}

/* Hide scrollbar but keep functionality */
.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    /* Fixed sizing prevents overflow */
    min-width: 120px;
    max-width: 140px;
    flex-shrink: 0;
    
    /* Improved mobile touch targets */
    padding: 12px 16px;
    min-height: 44px; /* iOS touch target minimum */
    
    /* Styling */
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* Text handling */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    line-height: 1.2;
    
    /* Touch optimization */
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-tab:hover,
.nav-tab:active {
    background: var(--light-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-tab.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 2px 12px rgba(52, 152, 219, 0.3);
}

/* Scroll indicators for better UX */
.nav-tabs::before,
.nav-tabs::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 1;
}

.nav-tabs::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
}

.nav-tabs::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
}


/* Mobile Calculator Container */
.calculator-container {
    padding: 16px 0;
    margin-top: 8px; /* Space below sticky navigation */
    min-height: calc(100vh - 140px); /* Account for header + nav height */
}

.calculator-section {
    display: none;
}

.calculator-section.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

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

/* Mobile Calculator Layout */
.calculator-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
}

/* Better panel spacing */
.left-panel,
.right-panel {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 16px;
}

/* Mobile Search Section */
.search-section {
    margin-bottom: 16px;
}

.search-input input {
    width: 100%;
    padding: 12px 16px 12px 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    font-size: 16px; /* Prevents zoom on iOS */
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.search-input input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

/* Mobile Category Selection */
.category-selection {
    margin-bottom: 16px;
}

.category-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.category-btn {
    padding: 10px 8px;
    font-size: 0.8rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-category-select {
    display: block;
}

.mobile-category-select select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    font-size: 16px; /* Prevents zoom on iOS */
    color: var(--text-primary);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.mobile-category-select select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Mobile Plant Grid */
.plant-grid {
    max-height: 300px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    background: var(--bg-secondary);
    margin-bottom: 16px;
}

.plant-item {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
    touch-action: manipulation;
}

.plant-item:last-child {
    margin-bottom: 0;
}

.plant-item:hover,
.plant-item:active {
    background: var(--light-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.plant-item.selected {
    background: rgba(52, 152, 219, 0.1);
    border-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.plant-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.plant-value {
    font-size: 0.8rem;
    color: var(--success-color);
    font-weight: 600;
}

/* Selected Plant Display */
.selected-plant-info {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(39, 174, 96, 0.05));
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
}

.selected-plant-info h4 {
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
    text-align: center;
}

.plant-stats {
    display: flexbox;
    justify-content: space-around;
    gap: 16px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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


/* Mobile Mutations Section */
.mutations-section {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
}

.mutation-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.mutation-controls .btn {
    font-size: 0.8rem;
    padding: 8px 12px;
}

/* Mobile Formula Display */
.formula-explanation {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    margin: 16px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    word-break: break-all;
}

/* Mobile Mutation Grid */
.mutation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    background: var(--bg-secondary);
}

.mutation-item {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 60px;
    touch-action: manipulation;
}

.mutation-item:hover,
.mutation-item:active {
    background: var(--light-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

.mutation-item.selected {
    background: rgba(39, 174, 96, 0.1);
    border-color: var(--success-color);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
}

.mutation-item.admin {
    opacity: 0.7;
    border-style: dashed;
}

.mutation-item.hidden {
    display: none;
}

.mutation-checkbox {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.mutation-info {
    padding-right: 32px;
}

.mutation-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 4px;
    display: block;
}

.mutation-multiplier {
    color: var(--success-color);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 4px;
    display: block;
}

.mutation-description {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Mobile Input Section */
.input-section {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
}

.input-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    font-size: 16px; /* Prevents zoom on iOS */
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Mobile Range Input */
.input-group input[type="range"] {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
    appearance: none;
    padding: 0;
    margin: 8px 0;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
}

.input-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#friendBoostValue {
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-top: 4px;
}

/* Mobile Converter Section */
.converter-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.converter-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.converter-box h4 {
    color: var(--info-color);
    margin-bottom: 12px;
    font-size: 1rem;
    text-align: center;
}

.converter-input {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.converter-result {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Mobile Results Section */
.results-section {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
}

.result-display {
    text-align: center;
    padding: 24px 16px;
    background: linear-gradient(135deg, var(--success-color), #27ae60);
    border-radius: 12px;
    color: white;
    margin-bottom: 16px;
}

.main-result {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.result-details {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.mutation-breakdown {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
}

/* Mobile Plant List Section */
.plant-list-section {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.plant-list-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 500;
}

.plant-list-summary span {
    font-size: 0.9rem;
}

.plant-list {
    max-height: 300px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
}

.plant-list-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    position: relative;
}

.plant-list-item:last-child {
    margin-bottom: 0;
}

.plant-list-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.plant-list-info h5 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

.plant-list-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.3;
}

.plant-list-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--success-color);
    text-align: center;
    margin: 8px 0;
}

.plant-list-item .btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 0.7rem;
}

/* Mobile Pet Calculators */
.pet-calculator-content,
.egg-calculator-content,
.weight-calculator-content {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
}

.pet-xp-grid,
.egg-input-grid,
.weight-input-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.pet-input-section,
.pet-modifiers-section,
.time-input-section,
.bonus-input-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
}

.pet-modifiers-section h4,
.time-input-section h4 {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 1rem;
}

.modifier-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modifier-btn {
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    touch-action: manipulation;
}

.modifier-btn:hover,
.modifier-btn:active {
    background: var(--light-color);
    border-color: var(--secondary-color);
}

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

.time-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.time-inputs input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    font-size: 16px;
    text-align: center;
}

.time-inputs span {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Mobile Button Styling */
.btn {
    min-height: 48px; /* iOS touch target */
    touch-action: manipulation;
}

.btn:hover,
.btn:active {
    transform: translateY(-1px);
}

.btn-full-width {
    width: 100%;
    margin-bottom: 12px;
}

/* Mobile Result Displays */
.pet-growth-result,
.egg-hatch-result,
.pet-weight-results {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.result-card h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.result-details p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.result-details p:last-child {
    margin-bottom: 0;
}

#ageListDisplay {
    max-height: 300px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.weight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-primary);
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.weight-item:last-child {
    margin-bottom: 0;
}

/* Mobile Educational Section */
.educational-section {
    padding: 32px 0;
}

.guide-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.guide-item {
    padding: 20px;
}

.strategy-section {
    padding: 20px;
}

.strategy-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.strategy-tip {
    padding: 16px;
}

/* Mobile FAQ Section */
.faq-section {
    padding: 32px 0;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    padding: 20px;
}

/* Mobile Footer */
.main-footer {
    padding: 32px 0 16px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.footer-section ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.footer-section li {
    margin-bottom: 0;
}

.footer-bottom {
    padding-top: 16px;
    text-align: center;
}

.disclaimer,
.copyright {
    margin-bottom: 8px;
}

.disclaimer p,
.copyright p {
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.4;
    margin: 0;
}

/* Very Small Screens (< 375px) */
@media (max-width: 374px) {
    .container {
        padding: 0 12px;
    }
    
    .header-container {
        padding: 12px;
    }
    
    .logo-section h1 {
        font-size: 1rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .feature-highlights {
        grid-template-columns: 1fr;
        max-width: 200px;
    }
    
    .nav-tabs {
        gap: 2px;
        padding: 0 4px;
    }
    
    .nav-tab {
        min-width: 70px;
        padding: 10px 12px;
        font-size: 0.75rem;
    }
    
    .main-result {
        font-size: 2rem;
    }
}

/* Landscape Orientation */
@media (max-width: 899px) and (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        padding: 20px 0;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .feature-highlights {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .highlight-item {
        padding: 8px 6px;
    }
    
    .calculator-container {
        padding: 12px 0;
    }
    
    .result-display {
        padding: 16px 12px;
    }
    
    .main-result {
        font-size: 2rem;
    }
}

/* Touch Optimizations */
.touch-optimized {
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
