/* CalWhat Calculator Platform - TipCalculator Specific Styles */
/* This file contains calculator-specific styles */

.glass-card h3 {
    font-family: 'Poppins', 'Noto Sans TC', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.glass-card h3 i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-label {
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #48bb78;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Roboto Mono', monospace;
    transition: all 0.3s ease;
    background: #f0fff4;
}

.form-input:focus {
    outline: none;
    border-color: #38a169;
    box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.2);
    transform: translateY(-2px);
}

}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Calculator-Specific Styles ===== */

/* Bill Input Wrapper */
.bill-input-wrapper {
    position: relative;
    margin-top: 10px;
}

.currency-symbol {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: 600;
    color: #718096;
    pointer-events: none;
    z-index: 1;
}

.bill-input-wrapper .form-input {
    padding-left: 40px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Tip Percentage Selector */
.tip-percentage-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.tip-btn {
    padding: 15px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #4a5568;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.4;
}

.tip-btn small {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    margin-top: 4px;
    color: #718096;
}

.tip-btn:hover {
    border-color: #667eea;
    background: #f7fafc;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.tip-btn:hover small {
    color: #667eea;
}

.tip-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.tip-btn.active small {
    color: rgba(255, 255, 255, 0.95);
}

/* Person Counter */
.person-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.counter-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.counter-btn:active {
    transform: scale(0.95);
}

.counter-display {
    width: 100px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    padding: 10px;
    border: 2px solid #48bb78;
    border-radius: 12px;
    background: #f0fff4;
    color: #2d3748;
}

/* Calculation Summary */
.calculation-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f7fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.summary-label {
    font-weight: 500;
    color: #4a5568;
    font-size: 0.95rem;
}

.summary-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
}

/* Result Item */
.result-item {
    text-align: center;
}

.result-label {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 8px;
    font-weight: 500;
}

.result-value {
    font-family: 'Roboto Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.result-item.highlight {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    margin-top: 15px;
}

.result-value.per-person {
    font-size: 2.5rem;
    color: #48bb78;
}

/* Culture Cards */
.culture-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    height: 100%;
}

.culture-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

.culture-card h4 {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.culture-recommendation {
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #f0f4ff;
    border-radius: 8px;
    display: inline-block;
}

.culture-description {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Button Group */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.button-group button {
    flex: 1;
    min-width: 140px;
}


/* Responsive Design */
@media (max-width: 767px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .tip-percentage-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .tip-btn {
        padding: 12px 8px;
        font-size: 1rem;
    }

    .tip-btn small {
        font-size: 0.7rem;
    }

    .counter-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .counter-display {
        width: 80px;
        font-size: 1.5rem;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group button {
        width: 100%;
        min-width: auto;
    }

    .result-value.per-person {
        font-size: 2rem;
    }

    .result-item.highlight {
        padding: 15px;
    }

    .summary-value {
        font-size: 1.1rem;
    }

    .glass-card {
        padding: 15px;
    }

    .seo-section {
        padding: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .tip-percentage-selector {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .tip-percentage-selector {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .person-counter {
        gap: 20px;
    }
}
