/**
 * Tea App - Simplified Design
 * Mobile-first, quick logging
 * @version 6.2.0
 */

/* Theme colors */
.app-tea {
    --tea-primary: #2D5016;
    --tea-secondary: #4A7C59;
    --tea-light: #F0F7F0;
    --tea-bg: linear-gradient(180deg, #F0F7F0 0%, #E8F1E8 100%);
    --tea-star: #F59E0B;
}

/* Main container */
.tea-main {
    min-height: 100vh;
    background: var(--tea-bg);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 84px 20px 24px; /* 60px header offset + 24px top spacing */
}

.tea-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 400px;
}

/* Tea icon */
.tea-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 8px;
}

/* Input section */
.input-section {
    width: 100%;
    text-align: center;
}

.input-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--tea-primary);
    margin-bottom: 12px;
}

.tea-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #C8DEC8;
    border-radius: 12px;
    background: white;
    color: #374151;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tea-input:focus {
    outline: none;
    border-color: var(--tea-primary);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.tea-input::placeholder {
    color: #9CA3AF;
}

.input-hint {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 8px;
}

/* Recent section */
.recent-section {
    width: 100%;
    text-align: center;
}

.recent-label {
    font-size: 13px;
    color: #5A7968;
    margin-bottom: 10px;
}

.recent-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.recent-chip {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--tea-primary);
    background: white;
    border: 1px solid #C8DEC8;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.recent-chip:hover {
    background: #F0F7F0;
    border-color: var(--tea-primary);
}

.recent-chip:active {
    transform: scale(0.96);
}

/* Type section */
.type-section {
    width: 100%;
    text-align: center;
}

.type-label {
    font-size: 13px;
    color: #5A7968;
    margin-bottom: 10px;
}

.type-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.type-chip {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #57534E;
    background: white;
    border: 2px solid #C8DEC8;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    gap: 4px;
}

.type-emoji {
    font-size: 14px;
}

.type-chip:hover {
    border-color: var(--tea-secondary);
}

.type-chip.selected {
    background: var(--tea-primary);
    border-color: var(--tea-primary);
    color: white;
}

.type-chip.locked {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Rating section */
.rating-section {
    width: 100%;
    text-align: center;
}

.rating-label {
    font-size: 13px;
    color: #5A7968;
    margin-bottom: 10px;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.star {
    width: 48px;
    height: 48px;
    font-size: 28px;
    color: #D4D4D4;
    background: white;
    border: 2px solid #E5E5E5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star:hover {
    border-color: var(--tea-star);
    color: var(--tea-star);
}

.star.selected {
    color: var(--tea-star);
    border-color: var(--tea-star);
    background: #FFFBEB;
}

/* Log button */
.log-button {
    width: 100%;
    max-width: 280px;
    padding: 18px 32px;
    font-size: 17px;
    font-weight: 600;
    color: white;
    background: linear-gradient(145deg, #4A7C59, #2D5016);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow:
        0 4px 14px rgba(45, 80, 22, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    -webkit-tap-highlight-color: transparent;
}

.log-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow:
        0 6px 20px rgba(45, 80, 22, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.log-button:active:not(:disabled) {
    transform: translateY(0);
}

.log-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Today's count */
.today-count {
    font-size: 14px;
    color: #5A7968;
    padding: 10px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.toast {
    padding: 12px 24px;
    border-radius: 12px;
    background: white;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: #D1FAE5;
    color: #065F46;
}

.toast-error {
    background: #FEE2E2;
    color: #991B1B;
}

/* Small screens */
@media (max-width: 360px) {
    .tea-icon {
        font-size: 48px;
    }

    .star {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }

    .type-chip {
        padding: 6px 12px;
        font-size: 12px;
    }

    .type-chips {
        gap: 6px;
    }
}
