@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text&family=DM+Sans:wght@400;500;700&display=swap');

/**
 * Planejador de Cercas - Stylesheet
 * Aesthetic Direction: Organic Minimalist (Premium Rural)
 */

/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Acessibilidade de Foco via Teclado */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

:root {
    /* Color Palette - Premium Organic */
    --primary-color: #2b3a2a;
    /* Deep Forest Green */
    --secondary-color: #556c52;
    /* Sage Green */
    --accent-color: #d89f67;
    /* Terracotta / Leather */
    --highlight-color: #ffffff;
    /* White surfaces */
    --bg-color: #f6f3eb;
    /* Warm Linen */

    --text-color: #1a1c1a;
    --text-secondary: #656763;

    --success-color: #3b5e3a;
    --warning-color: #d89f67;
    --danger-color: #8c3b3b;
    --info-color: #4a7482;

    /* Spacing (Fluid for Maximum Mobile Space) */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: clamp(12px, 3vw, 20px);
    --spacing-lg: clamp(16px, 4vw, 32px);
    --spacing-xl: clamp(20px, 5vw, 48px);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    /* Shadows - Soft & Ambient */
    --shadow-sm: 0 4px 12px rgba(43, 58, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(43, 58, 42, 0.06);
    --shadow-lg: 0 16px 40px rgba(43, 58, 42, 0.08);

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: clamp(14px, 2vw, 16px);
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(rgba(43, 58, 42, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 80px;
    padding-bottom: 90px;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'DM Serif Text', serif;
    font-weight: 400;
    line-height: 1.2;
    color: var(--primary-color);
}

h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
}

/* Fix icon alignment inside headings without breaking flex layouts */
h1 i,
h2 i,
h3 i,
h4 i,
h5 i,
h6 i {
    margin-right: 6px;
}

/* ===== HEADER ===== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(246, 243, 235, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(43, 58, 42, 0.05);
    z-index: 1000;
    padding-top: env(safe-area-inset-top, 0);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary-color);
    text-decoration: none;
}

.header-logo i {
    font-size: 1.6rem;
    color: var(--accent-color);
}

.header-logo h1 {
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.desktop-nav {
    display: none;
}

/* ===== MAIN CONTENT ===== */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-md) 10px;
    /* Reduzido padding lateral no mobile */
}

.container {
    width: 100%;
}

.section {
    display: none;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.section.active {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: 60px 10px;
    border-radius: var(--radius-lg);
    background-image: linear-gradient(rgba(43, 58, 42, 0.65), rgba(43, 58, 42, 0.85)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
    color: white;
}

.hero h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: white;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.card {
    background: var(--highlight-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 8px 24px rgba(43, 58, 42, 0.04);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(43, 58, 42, 0.05);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(43, 58, 42, 0.12);
    border-color: rgba(43, 58, 42, 0.15);
}

.card:hover::before {
    opacity: 1;
}

.card-primary::before {
    background: var(--primary-color);
}

.card-secondary::before {
    background: var(--secondary-color);
}

.card-accent::before {
    background: var(--accent-color);
}

.card-info::before {
    background: var(--info-color);
}

.card-success::before {
    background: var(--success-color);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-xs);
}

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

/* ===== FORMS (IMPROVED USABILITY) ===== */
.form-card {
    background: var(--highlight-color);
    border-radius: var(--radius-xl);
    padding: clamp(20px, 5vw, 48px);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(43, 58, 42, 0.04);
}

.form-card h2 {
    margin-bottom: var(--spacing-lg);
    font-size: 2.2rem;
    text-align: center;
}

.form-group {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px var(--spacing-md);
    border: 1px solid rgba(43, 58, 42, 0.15);
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-family: inherit;
    color: var(--text-color);
    background: #fdfbf7;
    transition: all var(--transition-fast);
}

.form-group input::placeholder {
    color: #a3a19e;
}

.form-group input:hover,
.form-group select:hover {
    border-color: rgba(43, 58, 42, 0.3);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--highlight-color);
    box-shadow: 0 0 0 4px rgba(43, 58, 42, 0.15);
}

/* ===== BUTTONS (PREMIUM CRAFT) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 16px var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 58, 42, 0.15);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--highlight-color);
    box-shadow: 0 4px 12px rgba(43, 58, 42, 0.2);
}

.btn-primary i {
    color: var(--highlight-color);
    font-size: 1.1em;
}

.btn-primary:hover {
    background: #1f2a1e;
    box-shadow: 0 6px 16px rgba(43, 58, 42, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--highlight-color);
}

.btn-secondary:hover {
    background: #41543f;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-color);
    color: var(--highlight-color);
}

.btn-accent {
    background: var(--accent-color);
    color: var(--highlight-color);
}

.btn-accent:hover {
    background: #c38c56;
}

.btn-info {
    background: var(--bg-color);
    color: var(--primary-color);
    border: 1px solid rgba(43, 58, 42, 0.1);
}

.btn-info:hover {
    background: #eeeadd;
}

/* ===== INSIGHTS BOX ===== */
.insights-box {
    margin-top: var(--spacing-lg);
    background: rgba(216, 159, 103, 0.08);
    border: 1px solid rgba(216, 159, 103, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.insights-box h4 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
}

.insight-item i {
    color: var(--accent-color);
    margin-top: 3px;
}

.insight-content {
    flex: 1;
}

.insight-content strong {
    display: block;
    color: #fff;
    margin-bottom: 4px;
    font-size: 1rem;
}

.insight-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0;
}

/* ===== RESULTS ===== */
.results-card {
    background: var(--primary-color);
    color: var(--highlight-color);
    border-radius: var(--radius-xl);
    padding: clamp(20px, 5vw, 48px);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-lg);
    animation: fadeUp 0.5s ease;
}

.results-card h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
    text-align: center;
}

.results-card p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-label {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.result-value {
    font-size: 1.3rem;
    font-family: 'DM Serif Text', serif;
    color: var(--highlight-color);
}

.result-total {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.result-total .result-label,
.result-total .result-value {
    color: #fff;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: 25px;
}

/* ===== GUIDE ===== */
.guide-intro {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.guide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.guide-card {
    background: var(--highlight-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid rgba(43, 58, 42, 0.03);
    transition: transform var(--transition-normal);
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.guide-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
}

.guide-card h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.guide-wires {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

.guide-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.guide-tips {
    background: var(--secondary-color);
    color: var(--highlight-color);
    border-radius: var(--radius-xl);
    padding: clamp(20px, 5vw, 48px);
    box-shadow: var(--shadow-md);
}

.guide-tips h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    color: var(--accent-color);
}

.guide-tips ul {
    list-style: none;
}

.guide-tips li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.guide-tips li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

/* ===== HISTORY ===== */
.empty-state {
    text-align: center;
    padding: 60px var(--spacing-xl);
    color: var(--text-secondary);
    background: white;
    border: 2px dashed rgba(43, 58, 42, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.2;
    color: var(--accent-color);
}

.empty-state p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

.empty-subtitle {
    font-size: 1rem;
    opacity: 0.7;
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.history-item {
    background: var(--highlight-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(43, 58, 42, 0.04);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(43, 58, 42, 0.05);
}

.history-title {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.history-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.history-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.history-detail {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.history-detail strong {
    color: var(--text-color);
    font-weight: 500;
}

.history-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* ===== FAQ ===== */
.faq-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
}

.faq-section h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: var(--spacing-xl);
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.faq-item {
    background: var(--highlight-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(43, 58, 42, 0.04);
}

.faq-question {
    width: 100%;
    padding: 16px var(--spacing-md);
    background: none;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: #fdfbf7;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform var(--transition-normal);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--spacing-lg);
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease-in-out;
}

.faq-question[aria-expanded="true"]+.faq-answer {
    max-height: 400px;
    opacity: 1;
    padding-bottom: 20px;
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(43, 58, 42, 0.06);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 2px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    flex: 1;
}

.nav-item i {
    font-size: 1.4rem;
    transition: transform var(--transition-fast);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active i {
    transform: translateY(-2px);
    color: var(--accent-color);
}

/* ===== FOOTER ===== */
.app-footer {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.app-footer p {
    margin-bottom: var(--spacing-xs);
}

.b20-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.b20-link:hover {
    color: var(--accent-color);
}


/* ===== CUSTOM MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(43, 58, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-color);
    width: 90%;
    max-width: 450px;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-normal);
}

.modal-overlay.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-content h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.modal-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

/* ===== PRINT STYLES (PDF EXPORT) ===== */
@media print {
    body {
        background: white !important;
        color: black !important;
        padding: 0;
        margin: 0;
    }
    
    .app-header, .app-footer, .hero, .cards-grid, .action-buttons, .form-card, .toast {
        display: none !important;
    }
    
    main {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .results-card {
        box-shadow: none !important;
        background: white !important;
        color: black !important;
        border: 2px solid #ddd !important;
        padding: 20px !important;
        page-break-inside: avoid;
        margin-top: 0 !important;
    }

    .results-card h3 {
        color: black !important;
    }

    .result-item {
        border-color: #eee !important;
        background: white !important;
        color: black !important;
    }

    .result-label, .result-value, .results-card p {
        color: black !important;
    }

    .insight-item {
        background: #f6f3eb !important;
        border: 1px solid #ddd !important;
    }

    .insight-content strong, .insight-content p, .insights-box h4 {
        color: black !important;
    }

    .insights-box {
        border-color: #ddd !important;
        background: transparent !important;
    }
}

/* ===== RESPONSIVE - TABLET ===== */
@media (min-width: 768px) {

    .cards-grid,
    .guide-grid,
    .results-grid,
    .history-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-buttons {
        flex-direction: row;
    }

    .desktop-nav {
        display: none;
    }

    .desktop-nav .nav-link {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        border-radius: 100px;
        color: var(--text-color);
        text-decoration: none;
        transition: all var(--transition-fast);
        font-size: 0.95rem;
        font-weight: 500;
    }

    /* Ocultar ícones no desktop conforme solicitado */
    .desktop-nav .nav-link i {
        display: none;
    }

    .desktop-nav .nav-link:hover {
        background: rgba(43, 58, 42, 0.05);
    }

    .desktop-nav .nav-link.active {
        background: var(--primary-color);
        color: var(--highlight-color);
    }
}

/* ===== RESPONSIVE - DESKTOP HEADER & GRID ===== */
@media (min-width: 1024px) {
    body {
        padding-bottom: 0;
    }

    .cards-grid,
    .guide-grid,
    .results-grid,
    .history-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* O menu desktop só aparece em telas maiores que 1024px para não quebrar a linha */
    .desktop-nav {
        display: flex;
        gap: var(--spacing-xs);
    }

    .bottom-nav {
        display: none !important;
    }
}

/* Identidade Visual - Logo */
.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Novo Footer Premium 2026 */
.app-footer {
    background: #1B241A;
    /* Verde floresta muito escuro */
    color: rgba(255, 255, 255, 0.7);
    padding: 60px var(--spacing-lg) 40px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    max-width: 350px;
}

.footer-brand span {
    font-family: 'DM Serif Text', serif;
    font-size: 1.5rem;
    color: white;
    line-height: 1.2;
}

.footer-nav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    flex: 1;
    justify-content: flex-end;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 150px;
}

.footer-column h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.5px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

.footer-copy {
    width: 100%;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-tech {
    color: var(--accent-color);
    font-weight: 500;
    opacity: 0.9;
}

/* Monochromatic Emojis for Cards */
.mono-emoji {
    font-size: 2.8rem;
    color: transparent;
    text-shadow: 0 0 0 var(--primary-color);
    display: inline-block;
    line-height: 1;
    margin-bottom: 15px;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(43, 58, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-size: 1.05rem;
    font-weight: 500;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none; /* Deixa os cliques passarem direto pelo toast */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
    top: 30px;
    opacity: 1;
}

.toast.error {
    background: rgba(140, 59, 59, 0.9);
}

.toast.info {
    background: rgba(74, 116, 130, 0.9);
}

/* Responsividade do Footer para Mobile */
@media (max-width: 768px) {
    .app-footer {
        padding: 40px var(--spacing-md) 30px;
        margin-top: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-nav-grid {
        justify-content: flex-start;
        flex-direction: column;
        gap: 30px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-copy {
        margin-top: 20px;
    }
}