/* ===== VARIÁVEIS E RESET ===== */
:root {
    --primary: #2E8B57;
    --primary-light: #4CAF7F;
    --primary-dark: #1B5E3F;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFB;
    --bg-gradient: linear-gradient(135deg, #2E8B57 0%, #4CAF7F 100%);
    --border: #E8E8E8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(46, 139, 87, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== PAGES ===== */
.page {
    display: none;
    animation: pageSlideIn 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.page.active {
    display: block;
}

/* ===== DESKTOP LAYOUT ===== */
.desktop-layout {
    display: flex;
    width: 100%;
    height: 100vh;
}

.sidebar {
    width: 280px;
    border-right: 2px solid var(--border);
    background: linear-gradient(180deg, white 0%, #F8FAFB 100%);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    box-shadow: var(--shadow-md);
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.logo-icon {
    font-size: 32px;
    animation: float 3s ease-in-out infinite;
}

.sidebar-header h1 {
    font-size: 20px;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    background: none;
    border: none;
    padding: 14px 16px;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--bg-gradient);
    border-radius: 0 10px 10px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item:hover {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.1) 0%, rgba(76, 175, 127, 0.05) 100%);
    color: var(--primary);
}

.nav-item.active {
    background: var(--bg-gradient);
    color: white;
}

.nav-item.active::before {
    opacity: 1;
}

.sidebar-footer {
    padding-top: 16px;
    border-top: 2px solid var(--border);
}

.sidebar-footer .btn {
    width: 100%;
}

.desktop-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFB 100%);
}

.desktop-header {
    margin-bottom: 40px;
}

.desktop-header h1 {
    font-size: 36px;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.desktop-header p {
    color: var(--text-light);
}

/* ===== STATS SECTION ===== */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 600;
}

.stat-value {
    font-size: 40px;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== INFO SECTION ===== */
.info-section {
    margin-bottom: 40px;
}

/* ===== PLANTS GRID ===== */
.plants-section h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 32px;
}

.plants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.plant-card {
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    background: white;
    position: relative;
    overflow: hidden;
}

.plant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
}

.plant-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px) scale(1.02);
}

.plant-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.plant-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.plant-card-heart {
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plant-card-heart:hover {
    transform: scale(1.3) rotate(10deg);
}

.plant-card-description {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.plant-card-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 12px;
}

.plant-card-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.plant-card-info-label {
    color: var(--text-light);
    font-weight: 600;
}

.plant-card-info-value {
    font-weight: 700;
    color: var(--primary);
}

.difficulty-badge {
    display: inline-block;
    background: var(--bg-gradient);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
}

/* ===== COMPARISON TABLE ===== */
.comparison-section {
    margin-top: 30px;
}

.comparison-container {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.comparison-container h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.comparison-table thead {
    background: var(--bg-gradient);
    color: white;
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    font-size: 13px;
}

.comparison-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.05) 0%, rgba(76, 175, 127, 0.05) 100%);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--bg-gradient);
    color: white;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.05) 0%, rgba(76, 175, 127, 0.05) 100%);
    transform: translateY(-3px);
}

.btn-large {
    width: 100%;
    padding: 18px 24px;
    font-size: 16px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .desktop-content {
        padding: 30px;
    }

    .plants-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .desktop-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid var(--border);
        flex-direction: row;
        padding: 12px;
        height: auto;
    }

    .sidebar-header {
        margin-bottom: 0;
    }

    .sidebar-nav {
        flex-direction: row;
        flex: 1;
        gap: 4px;
    }

    .sidebar-footer {
        border-top: none;
        border-left: 2px solid var(--border);
        padding-left: 12px;
        padding-top: 0;
    }

    .desktop-content {
        padding: 20px;
    }

    .plants-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px;
        font-size: 12px;
    }
}
