@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Inter:wght@400;600;800&display=swap');

/* ==========================================
   VARIÁVEIS DE CORES
   ========================================== */
:root {
    --bg: #f0f4f8;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #0ea5e9;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

body.dark {
    --bg: #020617;
    --card-bg: #0f172a;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #38bdf8;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ==========================================
   RESET E ESTILOS GLOBAIS
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    transition: background 0.3s ease;
    padding: 40px clamp(15px, 5vw, 30px);
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 500px;
}

/* ==========================================
   CABEÇALHO MELHORADO
   ========================================== */
.home-header {
    display: grid;
    grid-template-columns: 45px 1fr 45px;
    align-items: center;
    margin-bottom: 40px;
    gap: 10px;
}

.brand-title {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    line-height: 0.85;
    text-align: center;
    gap: 4px;
}

.brand-title .sky {
    font-size: clamp(2rem, 10vw, 3rem);
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(14, 165, 233, 0.2);
}

.brand-title .tabacaria {
    font-size: clamp(0.75rem, 4vw, 1rem);
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--text-main);
    opacity: 0.8;
}

.theme-toggle {
    background: var(--card-bg);
    color: var(--primary);
    border: none;
    outline: none;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    font-size: 18px;
    justify-self: end;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(14, 165, 233, 0.2);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* ==========================================
   GRID DE CARDS
   ========================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.card {
    background: var(--card-bg);
    padding: 25px 15px;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card i {
    font-size: 24px;
    color: var(--primary);
}

.card h3 {
    font-size: 1rem;
    font-weight: 600;
}

.card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================
   CARD DE DESTAQUE
   ========================================== */
.big-card {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--primary), #0369a1);
    color: white;
    border: none;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 30px;
}

.big-card .card-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.big-card i {
    color: white;
    font-size: 32px;
}

.big-card .arrow {
    align-self: center;
    font-size: 20px;
}

.big-card h3 {
    font-size: 1.1rem;
}

.big-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

/* ==========================================
   CARD DE HORÁRIO
   ========================================== */
.full-width {
    grid-column: span 2;
    flex-direction: row;
    text-align: left;
    background: transparent;
    border: 2px dashed var(--text-muted);
    box-shadow: none;
    padding: 20px;
    gap: 15px;
}

.full-width i {
    font-size: 28px;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-content h3 {
    font-size: 0.95rem;
}

.info-content p {
    font-size: 0.75rem;
    line-height: 1.4;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    margin-top: 40px;
    padding: 25px 0 0 0;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(14, 165, 233, 0.1) 10%,
            rgba(14, 165, 233, 0.4) 50%,
            rgba(14, 165, 233, 0.1) 90%,
            transparent 100%);
}

body.dark footer::before {
    background: linear-gradient(to right,
            transparent 0%,
            rgba(56, 189, 248, 0.15) 10%,
            rgba(56, 189, 248, 0.5) 50%,
            rgba(56, 189, 248, 0.15) 90%,
            transparent 100%);
}

footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */
@media (max-width: 400px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .big-card,
    .full-width {
        grid-column: span 1;
        padding: 20px;
    }

    .big-card {
        flex-direction: column;
        text-align: center;
    }

    .big-card .arrow {
        transform: rotate(90deg);
    }
}