/* Основные переменные */
:root {
    --color-primary: #6F4E37;
    --color-secondary: #C9A66B;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-bg-start: #fef3c7;
    --color-bg-end: #fcd34d;
    --color-card-bg: rgba(255, 255, 255, 0.95);
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--color-bg-start) 0%, var(--color-bg-end) 100%);
    min-height: 100vh;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Контейнер */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Заголовок */
.header {
    text-align: center;
    padding: 1.5rem 0;
    animation: fadeInDown 0.6s ease-out;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.icon-coffee-title {
    width: 2rem;
    height: 2rem;
    color: var(--color-primary);
}

.icon-inline {
    width: 1.2rem;
    height: 1.2rem;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.3rem;
    color: var(--color-primary);
}

/* Основной контент */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Карточка статуса */
.status-card {
    background: var(--color-card-bg);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
    backdrop-filter: blur(10px);
}

.animation-container {
    width: 100%;
    max-width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-info {
    animation: fadeIn 0.6s ease-out 0.3s backwards;
}

.status-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.status-title.open {
    color: var(--color-success);
}

.status-title.closed {
    color: var(--color-danger);
}

.status-title.break {
    color: var(--color-warning);
}

.status-title.lunch {
    color: #ff6b6b;
}

.status-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Таймеры */
.timers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.timer-card {
    background: var(--color-card-bg);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.timer-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.timer-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    color: var(--color-primary);
}

.timer-icon svg {
    width: 100%;
    height: 100%;
}

.timer-content {
    flex: 1;
}

.timer-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}

.timer-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
    margin: 0;
}

/* Цитата */
.quote-card {
    background: var(--color-card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--color-secondary);
}

.quote-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0;
}

/* График работы */
.schedule-card {
    background: var(--color-card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
    backdrop-filter: blur(10px);
}

.schedule-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(111, 78, 55, 0.05);
    border-radius: 10px;
    transition: var(--transition);
}

.schedule-item:hover {
    background: rgba(111, 78, 55, 0.1);
}

.schedule-item.today {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--color-success);
    font-weight: 600;
}

.day-name {
    color: var(--color-text);
}

.day-hours {
    color: var(--color-text-light);
    font-variant-numeric: tabular-nums;
}

.schedule-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(111, 78, 55, 0.2);
}

.schedule-note p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0.5rem 0;
}

/* Футер */
.footer {
    text-align: center;
    padding: 1.5rem 0;
    animation: fadeIn 0.6s ease-out 0.5s backwards;
}

.current-time {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-variant-numeric: tabular-nums;
}

/* Тестовые кнопки */
.test-controls {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.test-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.test-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #6F4E37 0%, #8B6F47 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.test-btn:active {
    transform: translateY(0);
}

.test-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.test-btn-reset {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.test-btn-reset:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* SVG анимации */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Адаптивность для планшетов */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
        padding: 2rem;
    }

    .title {
        font-size: 2.5rem;
    }

    .status-card {
        padding: 2.5rem 2rem;
    }

    .animation-container {
        max-width: 240px;
        height: 240px;
    }

    .status-title {
        font-size: 2rem;
    }

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

/* Адаптивность для десктопов */
@media (min-width: 1024px) {
    .container {
        max-width: 700px;
    }

    .status-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }
}

/* Темы для разных статусов */
.theme-open {
    --color-bg-start: #d1fae5;
    --color-bg-end: #6ee7b7;
}

.theme-closed {
    --color-bg-start: #fee2e2;
    --color-bg-end: #fca5a5;
}

.theme-break {
    --color-bg-start: #fef3c7;
    --color-bg-end: #fcd34d;
}

.theme-lunch {
    --color-bg-start: #ffe4e6;
    --color-bg-end: #fecdd3;
}

/* Плавная смена фона */
body {
    transition: background 1s ease-in-out;
}
