/* Alcohol Calorie Calculator Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    margin-right: 0.5rem;
    color: #f39c12;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255,255,255,0.2);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Page Title */
h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

h1 i {
    color: #e74c3c;
    margin-right: 0.5rem;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    text-align: center;
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: inline-flex;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin: 0 0.5rem;
    color: #666;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Calculator Section */
.calculator-section {
    margin-bottom: 3rem;
}

.calculator-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.calculator-card h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.calculator-card > p {
    color: #666;
    margin-bottom: 2rem;
}

/* Section Titles */
.section-title {
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.section-title h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title h3 i {
    color: #e74c3c;
}

/* Form Styles */
.input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.input-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.input-with-unit {
    display: flex;
    gap: 0.5rem;
}

.input-with-unit input {
    flex: 2;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-with-unit input:focus {
    outline: none;
    border-color: #e74c3c;
}

.input-with-unit select,
.input-group select {
    flex: 1;
    min-width: 100px;
    max-width: 120px;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}

.input-group select {
    max-width: none;
}

.quantity-unit {
    flex: 1;
    min-width: 80px;
    max-width: 100px;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Input Hint */
.input-hint {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #e74c3c;
}

/* Custom Drink Section */
.custom-drink-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Results Section */
.results-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.results-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-section h3 i {
    color: #e74c3c;
}

/* Calorie Overview */
.calorie-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.calorie-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #dee2e6;
    transition: transform 0.3s, box-shadow 0.3s;
}

.calorie-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.calorie-card.main-result {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.calorie-card.main-result .calorie-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.calorie-icon {
    font-size: 1.8rem;
    color: #e74c3c;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.calorie-info {
    flex: 1;
}

.calorie-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.calorie-card.main-result .calorie-label {
    color: rgba(255,255,255,0.9);
}

.calorie-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.calorie-card.main-result .calorie-value {
    color: white;
}

/* Nutrition Breakdown */
.nutrition-breakdown {
    margin-bottom: 2rem;
}

.nutrition-breakdown h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nutrition-breakdown h4 i {
    color: #e74c3c;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.nutrition-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nutrition-label {
    font-weight: 600;
    color: #2c3e50;
}

.nutrition-value {
    font-weight: bold;
    color: #e74c3c;
}

/* Calorie Comparison */
.calorie-comparison h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calorie-comparison h4 i {
    color: #e74c3c;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.comparison-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: transform 0.3s;
}

.comparison-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.comparison-item i {
    font-size: 1.5rem;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.comparison-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* How It Works Section */
.how-it-works {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.how-it-works h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* Calorie Chart Section */
.calorie-chart {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.calorie-chart h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.chart-container {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.drink-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.drink-type {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.drink-type h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.drink-type h3 i {
    color: #e74c3c;
}

.calorie-range {
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.drink-examples {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.example {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #666;
}

/* Health Impact Section */
.health-impact {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.health-impact h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.impact-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s, box-shadow 0.3s;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.impact-card i {
    font-size: 2rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.impact-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.impact-card p {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Low Calorie Tips Section */
.low-calorie-tips {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.low-calorie-tips h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.tip-category {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.tip-category h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-category h3 i {
    color: #e74c3c;
}

.tip-category ul {
    list-style: none;
    padding: 0;
}

.tip-category li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.tip-category li::before {
    content: '•';
    color: #e74c3c;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.faq-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.faq-container {
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.faq-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* Related Tools Section */
.related-tools {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.related-tools h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tool-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.tool-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.tool-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.tool-link {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.tool-link:hover {
    background: #2980b9;
}

/* Safety Information Section */
.safety-info {
    background: linear-gradient(135deg, #fff5f5, #ffebee);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #ffcdd2;
    margin-bottom: 3rem;
}

.safety-info h2 {
    text-align: center;
    color: #c62828;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.safety-info h2 i {
    margin-right: 0.5rem;
}

.safety-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.disclaimer,
.safety-tips {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #ffcdd2;
}

.disclaimer h3,
.safety-tips h3 {
    color: #c62828;
    margin-bottom: 1rem;
}

.disclaimer p,
.safety-tips li {
    color: #666;
    line-height: 1.6;
}

.safety-tips ul {
    list-style: none;
    padding: 0;
}

.safety-tips li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.safety-tips li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
}

/* Updated Responsive Design */
@media (max-width: 1024px) {
    .input-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calorie-overview {
        grid-template-columns: 1fr;
    }

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

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

    .steps-container {
        grid-template-columns: 1fr;
    }

    .drink-comparison {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .safety-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .nav-menu {
        gap: 1rem;
    }

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

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

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

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

    .calorie-card {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .calorie-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .safety-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .calculator-card,
    .how-it-works,
    .calorie-chart,
    .health-impact,
    .low-calorie-tips,
    .faq-section,
    .related-tools,
    .safety-info {
        padding: 1.5rem;
    }

    .input-with-unit {
        flex-direction: column;
    }

    .input-with-unit select {
        max-width: none;
    }

    .quantity-unit {
        min-width: auto;
        max-width: none;
    }

    .calorie-card {
        padding: 1rem;
    }

    .calorie-value {
        font-size: 1.3rem;
    }

    .nutrition-item,
    .comparison-item {
        padding: 0.75rem;
    }

    .drink-type,
    .impact-card,
    .tip-category,
    .faq-item,
    .tool-card,
    .disclaimer,
    .safety-tips {
        padding: 1rem;
    }
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    margin-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .input-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calorie-overview {
        grid-template-columns: 1fr;
    }

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

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

    .steps-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .nav-menu {
        gap: 1rem;
    }

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

    .calorie-card {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .calorie-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .calculator-card,
    .how-it-works {
        padding: 1.5rem;
    }

    .input-with-unit {
        flex-direction: column;
    }

    .input-with-unit select {
        max-width: none;
    }

    .quantity-unit {
        min-width: auto;
        max-width: none;
    }

    .calorie-card {
        padding: 1rem;
    }

    .calorie-value {
        font-size: 1.3rem;
    }

    .nutrition-item,
    .comparison-item {
        padding: 0.75rem;
    }
}
