/* Quick BAC 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: #e67e22;
    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;
    text-align: center;
}

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

/* Quick Inputs */
.quick-inputs {
    margin-bottom: 2rem;
}

.input-row {
    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: #e67e22;
}

.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;
}

/* Drinks and Hours Input */
.drinks-input,
.hours-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drink-btn,
.hour-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e67e22;
    background: white;
    color: #e67e22;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drink-btn:hover,
.hour-btn:hover {
    background: #e67e22;
    color: white;
}

.drinks-input input,
.hours-input input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    font-weight: bold;
}

/* Drink Presets */
.drink-presets {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-top: 1.5rem;
}

.drink-presets h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.preset-btn {
    background: white;
    border: 2px solid #e67e22;
    color: #e67e22;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.preset-btn:hover {
    background: #e67e22;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.preset-btn i {
    font-size: 1.5rem;
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    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: 1rem;
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #d35400, #c0392b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

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

/* BAC Display */
.bac-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
}

.bac-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e67e22, #d35400);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.3);
}

.bac-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

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

.bac-status {
    text-align: center;
}

.status-indicator {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

.status-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Status Colors */
.status-safe {
    background: #27ae60;
}

.status-warning {
    background: #f39c12;
}

.status-danger {
    background: #e74c3c;
}

/* Quick Info */
.quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #e67e22;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-item i {
    color: #e67e22;
    font-size: 1.2rem;
}

.info-item span {
    color: #666;
    font-size: 0.9rem;
}

.info-item strong {
    color: #2c3e50;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.action-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
}

.action-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* 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, #e67e22, #d35400);
    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;
}

/* Quick Reference Guide */
.quick-reference {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

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

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

.reference-card {
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.reference-card.safe {
    background: linear-gradient(135deg, #d5f4e6, #e8f8f5);
    border-color: #27ae60;
}

.reference-card.warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-color: #f39c12;
}

.reference-card.danger {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border-color: #e74c3c;
}

.reference-card.severe {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    border-color: #8e24aa;
}

.reference-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.reference-header i {
    font-size: 1.5rem;
}

.reference-card.safe .reference-header i {
    color: #27ae60;
}

.reference-card.warning .reference-header i {
    color: #f39c12;
}

.reference-card.danger .reference-header i {
    color: #e74c3c;
}

.reference-card.severe .reference-header i {
    color: #8e24aa;
}

.reference-header h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 0;
}

.status-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.reference-card.safe .status-label {
    color: #27ae60;
}

.reference-card.warning .status-label {
    color: #f39c12;
}

.reference-card.danger .status-label {
    color: #e74c3c;
}

.reference-card.severe .status-label {
    color: #8e24aa;
}

.reference-content ul {
    list-style: none;
    padding: 0;
}

.reference-content li {
    color: #666;
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    position: relative;
    font-size: 0.9rem;
}

.reference-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.reference-card.safe .reference-content li::before {
    color: #27ae60;
}

.reference-card.warning .reference-content li::before {
    color: #f39c12;
}

.reference-card.danger .reference-content li::before {
    color: #e74c3c;
}

.reference-card.severe .reference-content li::before {
    color: #8e24aa;
}

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

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

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

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

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

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

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

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

/* 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-row {
        grid-template-columns: 1fr;
    }

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

    .quick-info {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .bac-display {
        flex-direction: column;
        gap: 1rem;
    }
}

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

    h1 {
        font-size: 2rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .preset-buttons {
        grid-template-columns: 1fr;
    }

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

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

    .bac-circle {
        width: 120px;
        height: 120px;
    }

    .bac-value {
        font-size: 1.5rem;
    }

    .status-indicator {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.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,
    .quick-reference,
    .quick-tips,
    .faq-section,
    .related-tools,
    .safety-info {
        padding: 1.5rem;
    }

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

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

    .drinks-input,
    .hours-input {
        justify-content: center;
    }

    .drink-btn,
    .hour-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .bac-circle {
        width: 100px;
        height: 100px;
    }

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

    .bac-label {
        font-size: 0.8rem;
    }

    .status-indicator {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .status-text {
        font-size: 1.1rem;
    }

    .preset-btn {
        padding: 0.75rem;
    }

    .preset-btn i {
        font-size: 1.2rem;
    }

    .action-btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .reference-card,
    .tip-card,
    .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-row {
        grid-template-columns: 1fr;
    }

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

    .quick-info {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

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

    .bac-display {
        flex-direction: column;
        gap: 1rem;
    }
}

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

    h1 {
        font-size: 2rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .preset-buttons {
        grid-template-columns: 1fr;
    }

    .bac-circle {
        width: 120px;
        height: 120px;
    }

    .bac-value {
        font-size: 1.5rem;
    }

    .status-indicator {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.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;
    }

    .drinks-input,
    .hours-input {
        justify-content: center;
    }

    .drink-btn,
    .hour-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .bac-circle {
        width: 100px;
        height: 100px;
    }

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

    .bac-label {
        font-size: 0.8rem;
    }

    .status-indicator {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .status-text {
        font-size: 1.1rem;
    }

    .preset-btn {
        padding: 0.75rem;
    }

    .preset-btn i {
        font-size: 1.2rem;
    }

    .action-btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}
