/* Calorie Calculator Specific Styles */

.results-section {
    width: 100%;
    display: block;
    box-sizing: border-box;
    overflow-x: hidden;
    padding: 0 3rem;
}

.results-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.result-card {
    background: rgba(63, 63, 70, 0.5);
    border: 1px solid rgba(82, 82, 91, 1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.result-card.weight-loss {
    border-color: rgba(34, 197, 94, 0.3);
}

.result-card.maintenance {
    border-color: rgba(59, 130, 246, 0.3);
}

.result-card.muscle-gain {
    border-color: rgba(251, 146, 60, 0.3);
}

.result-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.result-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.result-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fb923c;
    margin-bottom: 0.5rem;
}

.result-card p {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

.nutrition-content > * + * {
    margin-top: 1.5rem;
}

.macro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .macro-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.macro-card {
    background-color: #27272a;
    padding: 1rem;
    border-radius: 0.5rem;
}

.macro-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.macro-card.protein .macro-title {
    color: #f87171;
}

.macro-card.carbohydrate .macro-title {
    color: #fbbf24;
}

.macro-card.fat .macro-title {
    color: #4ade80;
}

.macro-icon {
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.protein-icon {
    background-color: rgba(248, 113, 113, 0.1);
}

.carb-icon {
    background-color: rgba(251, 191, 36, 0.1);
}

.fat-icon {
    background-color: rgba(74, 222, 128, 0.1);
}

.loading-circle {
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.protein-icon .loading-circle {
    border-color: #f87171;
    border-top-color: transparent;
}

.carb-icon .loading-circle {
    border-color: #fbbf24;
    border-top-color: transparent;
}

.fat-icon .loading-circle {
    border-color: #4ade80;
    border-top-color: transparent;
}

.macro-description {
    font-size: 0.875rem;
    color: #d1d5db;
    margin-bottom: 0.75rem;
}

.macro-recommendation {
    background-color: rgba(63, 63, 70, 0.5);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.recommendation-label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.recommendation-value {
    font-size: 1.125rem;
    font-weight: 700;
}

.macro-card.protein .recommendation-value {
    color: #f87171;
}

.macro-card.carbohydrate .recommendation-value {
    color: #fbbf24;
}

.macro-card.fat .recommendation-value {
    color: #4ade80;
}

.sources-title {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.source-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.protein-dot {
    background-color: #f87171;
}

.carb-dot {
    background-color: #fbbf24;
}

.fat-dot {
    background-color: #4ade80;
}

.macro-distribution {
    background-color: #27272a;
    padding: 1rem;
    border-radius: 0.5rem;
}

.macro-distribution h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.distribution-bars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .distribution-bars {
        grid-template-columns: repeat(3, 1fr);
    }
}

.distribution-bar {
    position: relative;
    height: 1rem;
    background-color: #3f3f46;
    border-radius: 9999px;
    overflow: hidden;
}

.bar-fill {
    position: absolute;
    height: 100%;
    width: 0;
}

.cal-bar-fill {
    position: absolute;
    height: 100%;
}

.protein-bar {
    background-color: #f87171;
}

.carb-bar {
    background-color: #fbbf24;
}

.fat-bar {
    background-color: #4ade80;
}

.bar-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #ffffff;
}

.section-card {
    background-color: #27272a;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.tools-section-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.section-grid {
    display: grid;
    gap: 1rem;
}

.section-grid.cols-2 {
    grid-template-columns: 1fr;
}

.section-grid.cols-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .section-grid.cols-2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .section-grid.cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card-item {
    padding: 0.75rem;
    background-color: rgba(63, 63, 70, 0.5);
    border-radius: 0.5rem;
}

.card-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.card-description {
    font-size: 0.75rem;
    color: #d1d5db;
    margin-bottom: 0.25rem;
}

.card-value {
    font-size: 0.75rem;
    color: #ff8c00;
    margin-top: 0.25rem;
}

.water-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .water-section {
        flex-direction: row;
        align-items: center;
    }
}

.water-main {
    flex: 1;
}

.water-description {
    font-size: 0.875rem;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.water-value {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
}

.water-formula {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.water-limits {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.water-limit {
    text-align: center;
    padding: 0.5rem;
    background-color: rgba(63, 63, 70, 0.5);
    border-radius: 0.5rem;
}

.water-limit-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.water-limit-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #3b82f6;
}

.supplement-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .supplement-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .supplement-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.supplement-card {
    padding: 0.75rem;
    background-color: rgba(63, 63, 70, 0.5);
    border-radius: 0.5rem;
}

.supplement-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.supplement-title.protein {
    color: #c084fc;
}

.supplement-title.creatine {
    color: #3b82f6;
}

.supplement-title.vitamin {
    color: #fbbf24;
}

.supplement-title.omega {
    color: #f97316;
}

.supplement-description {
    font-size: 0.75rem;
    color: #d1d5db;
}

.tips-grid {
    display: grid;
    gap: 0.75rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.tip-icon {
    flex-shrink: 0;
    padding: 0.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tip-icon.error {
    background-color: rgba(248, 113, 113, 0.1);
}

.tip-icon.success {
    background-color: rgba(74, 222, 128, 0.1);
}

.tip-icon svg {
    width: 1rem;
    height: 1rem;
}

.tip-icon.error svg {
    color: #f87171;
}

.tip-icon.success svg {
    color: #4ade80;
}

.tip-content h5 {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.tip-content p {
    font-size: 0.75rem;
    color: #d1d5db;
}

.meal-timing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .meal-timing-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .meal-timing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.meal-card {
    padding: 0.75rem;
    background-color: rgba(63, 63, 70, 0.5);
    border-radius: 0.5rem;
}

.meal-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.meal-description {
    font-size: 0.75rem;
    color: #d1d5db;
    margin-bottom: 0.25rem;
}

.meal-calories {
    font-size: 0.75rem;
    color: #ff8c00;
    margin-top: 0.25rem;
    font-weight: 600;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Targets Grid */
.targets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .targets-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.target-card {
    background-color: #27272a;
    padding: 1rem;
    border-radius: 0.5rem;
}

.target-card h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.target-card.green h4 {
    color: #10b981;
}

.target-card.blue h4 {
    color: #3b82f6;
}

.target-card.purple h4 {
    color: #8b5cf6;
}

.target-card.orange h4 {
    color: #f97316;
}

.target-card p {
    font-size: 0.875rem;
    color: #d1d5db;
}

.target-card ul {
    list-style-type: disc;
    list-style-position: inside;
    font-size: 0.875rem;
    color: #d1d5db;
}

@media (max-width: 767px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}