/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Santour Palette - Naturals & Araucaria */
    --primary: #2d6a4f;
    /* Deep Forest Green */
    --secondary: #d4a373;
    /* Earth/Wood Tone */
    --accent: #e9c46a;
    /* Warm Sun/Gold */
    --danger: #e63946;
    --dark: #1b4332;
    /* Very Dark Green */
    --light: #f1faee;
    /* Off-white/Mist */
    --border: #e5e7eb;
    --text: #374151;
    --text-light: #6b7280;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 50%, #fef3c7 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Dashboard Layout */
body {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto;
    min-height: 100vh;
    background-color: #f3f4f6;
    /* Light gray dashboard background */
}

/* Sidebar */
.sidebar {
    background: var(--dark);
    color: white;
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 50;
    overflow-y: auto;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    /* Make logo pop on dark bg */
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
}

.nav-icon {
    font-size: 1.25rem;
}

/* Main Content Area */
.main {
    padding: 2rem 3rem;
    overflow-x: hidden;
}

.header-welcome {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-text h2 {
    font-size: 2rem;
    color: var(--dark);
    font-weight: 800;
}

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

/* Navbar (Old) Removal Overrides */
.navbar {
    display: none;
    /* Hide old navbar */
}

/* Mobile Responsive Sidebar */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    box-shadow: var(--shadow);
}

@media (max-width: 1024px) {
    body {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -280px;
        transition: left 0.3s ease;
        width: 280px;
    }

    .sidebar.open {
        left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .main {
        padding: 5rem 1rem 2rem 1rem;
    }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-lg);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Why Section */
.why-section {
    margin-bottom: 4rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.why-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

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

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.why-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Objective Section */
.objective-section {
    margin-bottom: 4rem;
}

.objective-box {
    background: white;
    border-radius: 1rem;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary);
}

.objective-header {
    text-align: center;
    margin-bottom: 2rem;
}

.objective-title {
    font-size: 2rem;
    color: var(--dark);
}

.objective-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.objective-metric {
    text-align: center;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.metric-value.current {
    color: var(--secondary);
}

.metric-value.target {
    color: var(--primary);
}

.metric-value.growth {
    color: var(--accent);
}

.objective-arrow {
    font-size: 2rem;
    color: var(--text-light);
}

.objective-timeline {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.timeline-label {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .objective-content {
        gap: 1rem;
    }

    .metric-value {
        font-size: 1.875rem;
    }
}

/* Analysis Section */
.analysis-section {
    margin-bottom: 4rem;
}

.analysis-tabs {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-button.active {
    color: var(--primary);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.analysis-card {
    background: var(--light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.analysis-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.hashtag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hashtag-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 9999px;
    border: 1px solid var(--border);
}

.hashtag {
    font-weight: 600;
    color: var(--primary);
}

.hashtag-tier {
    font-size: 0.75rem;
    color: var(--text-light);
    background: var(--light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.strategy-list {
    list-style: none;
}

.strategy-list li {
    padding: 0.75rem 0;
    color: var(--text);
    line-height: 1.8;
    border-bottom: 1px solid var(--border);
}

.strategy-list li:last-child {
    border-bottom: none;
}

.engagement-table,
.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.engagement-table th,
.schedule-table th {
    background: var(--light);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 2px solid var(--border);
}

.engagement-table td,
.schedule-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.engagement-table tr:hover,
.schedule-table tr:hover {
    background: var(--light);
}

.content-distribution {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.distribution-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.distribution-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.label-name {
    font-weight: 600;
    color: var(--dark);
}

.label-count {
    color: var(--text-light);
}

.distribution-bar {
    height: 8px;
    background: var(--light);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.content-ideas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.idea-category {
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary);
    color: var(--text);
    line-height: 1.6;
}

/* Strategy Section */
.strategy-section {
    margin-bottom: 4rem;
}

.strategy-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pillar-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
    transition: all 0.3s ease;
    position: relative;
}

.pillar-card:nth-child(2) {
    border-top-color: var(--secondary);
}

.pillar-card:nth-child(3) {
    border-top-color: var(--accent);
}

.pillar-card:nth-child(4) {
    border-top-color: #8b5cf6;
}

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

.pillar-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.pillar-card:nth-child(2) .pillar-number {
    background: var(--secondary);
}

.pillar-card:nth-child(3) .pillar-number {
    background: var(--accent);
}

.pillar-card:nth-child(4) .pillar-number {
    background: #8b5cf6;
}

.pillar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.pillar-list {
    list-style: none;
}

.pillar-list li {
    padding: 0.5rem 0;
    color: var(--text);
    line-height: 1.6;
}

.pillar-list li:before {
    content: '✓ ';
    color: var(--primary);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Calendar Section */
.calendar-section {
    margin-bottom: 4rem;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-label {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--text);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.calendar-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calendar-item {
    background: var(--light);
    border-left: 4px solid var(--primary);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.calendar-item:hover {
    box-shadow: var(--shadow);
}

.calendar-item-content {
    flex: 1;
}

.calendar-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.calendar-item-emoji {
    font-size: 1.5rem;
}

.calendar-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
}

.calendar-item-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.calendar-item-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.calendar-item-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-planned {
    background: #dbeafe;
    color: #1e40af;
}

.status-draft {
    background: #fef3c7;
    color: #92400e;
}

.status-published {
    background: #dcfce7;
    color: #166534;
}

.calendar-item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-icon:hover {
    background: var(--light);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-delete:hover {
    background: #fee2e2;
    border-color: var(--danger);
    color: var(--danger);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    border: 2px dashed var(--border);
    border-radius: 1rem;
}

.empty-state-text {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.empty-state-subtext {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Add Form */
.add-form-card {
    background: var(--light);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--border);
}

.form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.add-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.875rem;
}

.form-input,
.form-textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--text);
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.content-types {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.content-type-btn {
    background: white;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
}

.content-type-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.content-type-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.emoji {
    font-size: 1.5rem;
}

.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .content-types {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

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

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

/* Budget Section */
.budget-section {
    margin-bottom: 4rem;
}

.budget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.budget-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.budget-card.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
}

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

.budget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.budget-card.highlight .budget-title {
    color: white;
}

.budget-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.budget-card.highlight .budget-value {
    color: white;
}

.budget-detail {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.budget-card.highlight .budget-detail {
    color: rgba(255, 255, 255, 0.9);
}

.budget-list {
    list-style: none;
}

.budget-list li {
    padding: 0.5rem 0;
    color: var(--text);
    font-size: 0.875rem;
}

.budget-card.highlight .budget-list li {
    color: rgba(255, 255, 255, 0.9);
}

.budget-list li:before {
    content: '✓ ';
    color: var(--primary);
    font-weight: 700;
    margin-right: 0.5rem;
}

.budget-card.highlight .budget-list li:before {
    color: white;
}

/* Benchmarking & Performance Cards */
.benchmarking-section,
.performance-section {
    margin-bottom: 4rem;
}

.benchmark-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border-left: 5px solid #E1306C;
    /* Instagram Color default */
    transition: transform 0.3s ease;
}

.benchmark-card:hover {
    transform: translateY(-5px);
}

.benchmark-card-add {
    border: 2px dashed var(--border);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s ease;
    min-height: 160px;
}

.benchmark-card-add:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(45, 106, 79, 0.05);
    /* Primary tint */
}

.panel-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.btn-outline {
    display: block;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-outline:hover {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}

/* Status Indicators */
.status-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-following {
    background: #dbeafe;
    color: #1e40af;
}

.status-analyzed {
    background: #d1fae5;
    color: #065f46;
}

/* Footer */
.footer {
    background: var(--dark);
    color: #d1d5db;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-text {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-subtext {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.875rem;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .tab-buttons {
        gap: 0.5rem;
    }

    .tab-button {
        padding: 0.75rem 0;
        font-size: 0.875rem;
    }

    .objective-content {
        gap: 1rem;
    }

    .metric-value {
        font-size: 1.875rem;
    }

    .calendar-item {
        flex-direction: column;
    }

    .calendar-item-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}