/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Main content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .main-content {
        max-width: 1000px;
    }
}

/* Ad containers */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.ad-banner-top,
.ad-banner-bottom {
    width: 100%;
    height: 90px;
    background: rgba(15, 15, 35, 0.8);
    border: 2px dashed rgba(124, 58, 237, 0.4);
    border-radius: 8px;
}

.ad-sidebar {
    position: absolute;
    right: -320px;
    top: 0;
    width: 300px;
    height: 600px;
    background: rgba(15, 15, 35, 0.8);
    border: 2px dashed rgba(124, 58, 237, 0.4);
    border-radius: 8px;
}

.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.ad-placeholder span {
    font-weight: 600;
    margin-bottom: 4px;
}

.ad-placeholder small {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Mobile ad adjustments */
@media (max-width: 767px) {
    .ad-banner-top,
    .ad-banner-bottom {
        height: 80px;
        margin: 12px 0;
        border-radius: 6px;
    }
    
    .ad-sidebar {
        display: none; /* Hide sidebar ad on mobile */
    }
    
    .ad-placeholder {
        font-size: 0.75rem;
    }
    
    .ad-placeholder small {
        font-size: 0.65rem;
    }
}

/* Mobile-first responsive design */
@media (max-width: 767px) {
    .container {
        padding: 8px;
        max-width: 100%;
    }
    
    .main-content {
        max-width: 100%;
        gap: 20px;
    }
    
    .header {
        margin-bottom: 16px;
        text-align: center;
    }
    
    .header h1 {
        font-size: 1.8rem;
        margin-bottom: 6px;
        text-align: center;
    }
    
    .header p {
        font-size: 0.85rem;
        line-height: 1.3;
        text-align: center;
        max-width: 100%;
    }
    
    .calculator-card,
    .results-card {
        padding: 16px 12px;
        border-radius: 12px;
        margin-bottom: 12px;
    }
    
    .form-section {
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
    
    .form-section h2 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-group {
        gap: 6px;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }
    
    /* Mobile-optimized unit toggle */
    .unit-toggle {
        flex-direction: column;
        gap: 8px;
    }
    
    .unit-toggle label {
        padding: 10px 14px;
        text-align: center;
        font-size: 0.85rem;
    }
    
    /* Mobile-optimized sliders */
    .slider-container {
        margin-top: 6px;
    }
    
    .slider-container input[type="range"] {
        height: 8px;
        margin-bottom: 6px;
    }
    
    .slider-container input[type="range"]::-webkit-slider-thumb {
        width: 22px;
        height: 22px;
    }
    
    .slider-labels {
        font-size: 0.7rem;
        margin-top: 4px;
    }
    
    /* Mobile-optimized buttons */
    .calculate-btn,
    .reset-btn {
        padding: 14px 18px;
        font-size: 0.95rem;
        border-radius: 8px;
        width: 100%;
        margin-top: 12px;
    }
    
    /* Mobile-optimized results */
    .results-card h2 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .result-item {
        padding: 10px;
        border-radius: 8px;
    }
    
    .result-item h3 {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .result-value {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }
    
    .result-grams {
        font-size: 0.7rem;
    }
    
    .result-percentage {
        font-size: 0.7rem;
    }
    
    /* Mobile-optimized macro breakdown */
    .macro-breakdown {
        margin-bottom: 12px;
    }
    
    .macro-breakdown h3 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .macro-chart {
        gap: 8px;
    }
    
    .macro-bar {
        gap: 8px;
    }
    
    .macro-bar span {
        min-width: 40px;
        font-size: 0.75rem;
    }
    
    .macro-fill {
        height: 18px;
        border-radius: 8px;
    }
    
    /* Mobile-optimized additional info */
    .additional-info {
        padding: 10px;
        border-radius: 8px;
    }
    
    .additional-info h3 {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .info-item {
        font-size: 0.75rem;
        padding: 4px 0;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .info-item:last-child {
        border-bottom: none;
    }
    
    /* Mobile footer */
    .footer {
        margin-top: 12px;
        font-size: 0.7rem;
        padding: 0 6px;
    }
    
    /* Mobile-specific height input group */
    .height-input-group {
        display: flex;
        gap: 8px;
        align-items: center;
    }
    
    .height-input-group input {
        flex: 1;
        width: 100%;
    }
    
    .height-input-group .unit-label {
        text-align: center;
        padding: 8px 10px;
        background: #f7fafc;
        border-radius: 6px;
        font-size: 0.7rem;
        min-width: 50px;
        white-space: nowrap;
    }
    
    /* Mobile touch-friendly improvements */
.form-group input:focus,
.form-group select:focus {
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.3);
}
    
    /* Mobile scroll improvements */
    .results-card.show {
        scroll-margin-top: 12px;
    }
    
    /* Mobile-specific results layout */
    .results-card {
        margin-top: 6px;
    }
    
    /* Mobile-friendly macro chart */
.macro-chart {
    background: rgba(15, 15, 35, 0.6);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}
    
    /* Mobile-optimized form spacing */
    .macro-form {
        gap: 12px;
    }
    
    /* Mobile-friendly disabled slider */
    .slider-container.disabled {
        opacity: 0.7;
    }
    
    .slider-container.disabled input[type="range"] {
        background: #f1f3f4;
    }
    
    /* Mobile touch feedback */
    .form-group input:active,
    .form-group select:active,
    .calculate-btn:active,
    .reset-btn:active {
        transform: scale(0.98);
    }
    
    /* Mobile-optimized unit labels */
.unit-label {
    background: rgba(124, 58, 237, 0.2);
    color: #7c3aed;
    font-weight: 600;
}

    /* Mobile-optimized welcome message */
    .welcome-message {
        padding: 30px 16px;
    }
    
    .welcome-message h2 {
        font-size: 1.6rem;
        margin-bottom: 16px;
    }
    
    .welcome-message p {
        font-size: 0.95rem;
        margin-bottom: 24px;
        line-height: 1.5;
    }
    
    .start-btn {
        padding: 16px 28px;
        font-size: 1.1rem;
    }

    /* Theme switcher mobile adjustments */
    .theme-switcher {
        padding: 8px 0;
        margin-bottom: 16px;
    }

    .theme-buttons {
        gap: 8px;
        padding: 0 12px;
    }

    .theme-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 80px;
    }
}

/* Cards */
.calculator-card,
.results-card {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(124, 58, 237, 0.1);
    backdrop-filter: blur(20px);
}

/* Theme Switcher */
.theme-switcher {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    padding: 12px 0;
    margin-bottom: 20px;
}

.theme-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.theme-btn {
    background: rgba(30, 41, 59, 0.8);
    color: #cbd5e1;
    border: 2px solid rgba(124, 58, 237, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.theme-btn:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.6);
    color: #f1f5f9;
    transform: translateY(-1px);
}

.theme-btn.active {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-color: #7c3aed;
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    padding: 40px 20px;
    transition: all 0.5s ease;
}

.welcome-message h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f1f5f9;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.start-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.start-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.4), 0 0 30px rgba(124, 58, 237, 0.2);
}

.start-btn:hover::before {
    left: 100%;
}

.start-btn:active {
    transform: translateY(0);
}

/* Form styles */
.macro-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: all 0.5s ease;
}

.form-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f1f5f9;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 480px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid rgba(124, 58, 237, 0.4);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(15, 15, 35, 0.8);
    color: #f1f5f9;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2), 0 0 20px rgba(124, 58, 237, 0.1);
    background: rgba(15, 15, 35, 0.95);
}

/* Unit toggle styles */
.unit-toggle {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.unit-toggle input[type="radio"] {
    display: none;
}

.unit-toggle label {
    padding: 10px 16px;
    border: 2px solid rgba(124, 58, 237, 0.4);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(15, 15, 35, 0.8);
    font-weight: 500;
    color: #cbd5e1;
}

.unit-toggle input[type="radio"]:checked + label {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4), 0 0 20px rgba(124, 58, 237, 0.2);
}

/* Height input group for imperial units */
.height-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.height-input-group input {
    flex: 1;
}

.height-input-group .unit-label {
    font-weight: 500;
    color: #cbd5e1;
    min-width: 30px;
}

/* Slider styles */
.slider-container {
    margin-top: 10px;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(124, 58, 237, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 10px;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4), 0 0 20px rgba(124, 58, 237, 0.2);
    transition: all 0.3s ease;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.5), 0 0 30px rgba(124, 58, 237, 0.3);
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4), 0 0 20px rgba(124, 58, 237, 0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Disabled slider styles */
.slider-container.disabled input[type="range"] {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(124, 58, 237, 0.1);
}

.slider-container.disabled input[type="range"]::-webkit-slider-thumb {
    background: #64748b;
    cursor: not-allowed;
    box-shadow: none;
}

.slider-container.disabled input[type="range"]::-webkit-slider-thumb:hover {
    transform: none;
    box-shadow: none;
}

.slider-container.disabled input[type="range"]::-moz-range-thumb {
    background: #64748b;
    cursor: not-allowed;
    box-shadow: none;
}

.slider-container.disabled .slider-labels {
    color: #64748b;
}

/* Button styles */
.calculate-btn,
.reset-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.calculate-btn:hover,
.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.4), 0 0 30px rgba(124, 58, 237, 0.2);
}

.reset-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.reset-btn:hover {
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.4), 0 0 30px rgba(239, 68, 68, 0.2);
}

/* Results styles */
.results-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.results-card.show {
    opacity: 1;
    transform: translateY(0);
}

.results-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #f1f5f9;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 480px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

.result-item {
    text-align: center;
    padding: 20px;
    background: rgba(15, 15, 35, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.result-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 5px;
}

.result-grams {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

.result-percentage {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Macro breakdown */
.macro-breakdown {
    margin-bottom: 30px;
}

.macro-breakdown h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f1f5f9;
}

.macro-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.macro-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.macro-bar span {
    min-width: 60px;
    font-weight: 500;
    color: #cbd5e1;
}

.macro-fill {
    height: 30px;
    border-radius: 15px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.macro-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.protein-fill {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.carbs-fill {
    background: linear-gradient(90deg, #10b981, #059669);
}

.fat-fill {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* Additional info */
.additional-info {
    background: rgba(15, 15, 35, 0.8);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.additional-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #f1f5f9;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    font-size: 0.95rem;
    color: #cbd5e1;
}

.info-item strong {
    color: #f1f5f9;
}

/* Footer */
.footer {
    margin-top: 60px;
    color: white;
    opacity: 0.9;
    font-size: 0.9rem;
    border-top: 1px solid rgba(124, 58, 237, 0.3);
    padding-top: 40px;
}

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

.footer-section h3 {
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 15px;
}

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

.footer-section ul li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.footer-section ul li:before {
    content: '•';
    color: #7c3aed;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Mobile footer adjustments */
@media (max-width: 767px) {
    .footer {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .footer-section ul li {
        padding: 3px 0;
        padding-left: 15px;
        font-size: 0.85rem;
    }
}

/* Utility classes */
.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .calculator-card,
    .results-card {
        padding: 20px;
    }
    
    .form-section h2 {
        font-size: 1.3rem;
    }
    
    .results-card h2 {
        font-size: 1.5rem;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
} 

/* Character Selection */
.character-selection {
    text-align: center;
    padding: 20px 0;
}

.character-selection h2 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.character-selection > p {
    margin-bottom: 30px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.character-card {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.character-card.selected {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(124, 58, 237, 0.1) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.2);
}

.character-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.character-card h3 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.character-card p {
    margin: 0 0 15px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.macro-preview {
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 15px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.character-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.tag {
    background: var(--bg-gradient);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--input-border);
}

.continue-btn {
    background: var(--button-bg);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--button-shadow);
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.continue-btn.hidden {
    display: none;
}

/* Character-specific color schemes */
.character-card[data-character="warrior"] {
    border-color: #dc2626;
}

.character-card[data-character="warrior"]:hover,
.character-card[data-character="warrior"].selected {
    border-color: #dc2626;
    background: linear-gradient(135deg, #dc2626 0%, rgba(220, 38, 38, 0.1) 100%);
}

.character-card[data-character="warrior"] .macro-preview {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.2);
}

.character-card[data-character="athlete"] {
    border-color: #059669;
}

.character-card[data-character="athlete"]:hover,
.character-card[data-character="athlete"].selected {
    border-color: #059669;
    background: linear-gradient(135deg, #059669 0%, rgba(5, 150, 105, 0.1) 100%);
}

.character-card[data-character="athlete"] .macro-preview {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    border-color: rgba(5, 150, 105, 0.2);
}

.character-card[data-character="yogi"] {
    border-color: #7c3aed;
}

.character-card[data-character="yogi"]:hover,
.character-card[data-character="yogi"].selected {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #7c3aed 0%, rgba(124, 58, 237, 0.1) 100%);
}

.character-card[data-character="yogi"] .macro-preview {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    border-color: rgba(124, 58, 237, 0.2);
}

.character-card[data-character="powerlifter"] {
    border-color: #ea580c;
}

.character-card[data-character="powerlifter"]:hover,
.character-card[data-character="powerlifter"].selected {
    border-color: #ea580c;
    background: linear-gradient(135deg, #ea580c 0%, rgba(234, 88, 12, 0.1) 100%);
}

.character-card[data-character="powerlifter"] .macro-preview {
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
    border-color: rgba(234, 88, 12, 0.2);
}

.character-card[data-character="busyParent"] {
    border-color: #0891b2;
}

.character-card[data-character="busyParent"]:hover,
.character-card[data-character="busyParent"].selected {
    border-color: #0891b2;
    background: linear-gradient(135deg, #0891b2 0%, rgba(8, 145, 178, 0.1) 100%);
}

.character-card[data-character="busyParent"] .macro-preview {
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
    border-color: rgba(8, 145, 178, 0.2);
}

.character-card[data-character="officeWorker"] {
    border-color: #6b7280;
}

.character-card[data-character="officeWorker"]:hover,
.character-card[data-character="officeWorker"].selected {
    border-color: #6b7280;
    background: linear-gradient(135deg, #6b7280 0%, rgba(107, 114, 128, 0.1) 100%);
}

.character-card[data-character="officeWorker"] .macro-preview {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.2);
}

.character-card[data-character="student"] {
    border-color: #059669;
}

.character-card[data-character="student"]:hover,
.character-card[data-character="student"].selected {
    border-color: #059669;
    background: linear-gradient(135deg, #059669 0%, rgba(5, 150, 105, 0.1) 100%);
}

.character-card[data-character="student"] .macro-preview {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    border-color: rgba(5, 150, 105, 0.2);
}

.character-card[data-character="nightShift"] {
    border-color: #1e40af;
}

.character-card[data-character="nightShift"]:hover,
.character-card[data-character="nightShift"].selected {
    border-color: #1e40af;
    background: linear-gradient(135deg, #1e40af 0%, rgba(30, 64, 175, 0.1) 100%);
}

.character-card[data-character="nightShift"] .macro-preview {
    background: rgba(30, 64, 175, 0.1);
    color: #1e40af;
    border-color: rgba(30, 64, 175, 0.2);
}

/* Mobile adjustments for character selection */
@media (max-width: 767px) {
    .character-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .character-card {
        padding: 20px;
    }
    
    .character-icon {
        font-size: 2.5rem;
    }
    
    .character-card h3 {
        font-size: 1.2rem;
    }
    
    .macro-preview {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
} 

/* Character Recommendations */
.character-recommendations {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--accent-color);
}

.character-recommendations h3 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.recommendation-item {
    background: var(--card-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.recommendation-item h4 {
    margin: 0 0 15px 0;
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.recommendation-item ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.recommendation-item li {
    margin-bottom: 8px;
    line-height: 1.4;
}

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

/* Mobile adjustments for recommendations */
@media (max-width: 767px) {
    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .recommendation-item {
        padding: 15px;
    }
    
    .character-recommendations h3 {
        font-size: 1.2rem;
    }
    
    .recommendation-item h4 {
        font-size: 1rem;
    }
} 

/* Macro Comparison */
.macro-comparison {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    border: 2px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    text-align: center;
}

.macro-comparison h3 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.comparison-grid {
    display: grid;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.comparison-item {
    background: var(--card-bg);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    font-size: 0.95rem;
    color: var(--text-secondary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.comparison-item strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Mobile adjustments for comparison */
@media (max-width: 767px) {
    .macro-comparison {
        margin: 20px 0;
        padding: 15px;
    }
    
    .macro-comparison h3 {
        font-size: 1.1rem;
    }
    
    .comparison-item {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
} 