/* Verkflöde Main Stylesheet */

/* CSS Variables for Light Mode */
:root {
    --forest-green: #0A382B;
    --leaf-green: #6EBF4A;
    --off-white: #F7F7F7;
    --light-gray: #E0E0E0;
    --charcoal: #333333;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7F7F7;
    --text-primary: #333333;
    --text-secondary: #666666;
    --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.1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --forest-green: #0F4A3A;
    --leaf-green: #7FD35A;
    --off-white: #1A1A1A;
    --light-gray: #2A2A2A;
    --charcoal: #E0E0E0;
    --bg-primary: #0F0F0F;
    --bg-secondary: #1A1A1A;
    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
}

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

/* Privacy Policy Styles */
.privacy-main {
    min-height: 100vh;
    background: var(--bg-primary);
}

.privacy-container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.privacy-title {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.privacy-updated {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.privacy-section {
    margin-bottom: 2.5rem !important; /* INCREASED section spacing */
    padding: 0 !important; /* Override global section padding */
}

.privacy-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* THE FIX: Remove all margins from paragraphs and lists within a section */
.privacy-section p,
.privacy-section ul {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.privacy-section ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem; /* Add a little space before lists */
}

.privacy-section li {
    margin-bottom: 0.25rem;
}

.privacy-contact-box {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    text-align: center;
}

.privacy-contact-box p {
    color: var(--text-secondary);
}

.privacy-contact-box a {
    color: var(--leaf-green);
    font-weight: 500;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }

/* Selection Color */
::selection {
    background-color: var(--leaf-green);
    color: var(--forest-green);
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(45deg, var(--forest-green), var(--leaf-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Skip to Content Link (Accessibility) */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--forest-green);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
    top: 0;
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 4.5rem;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--forest-green);
}

.logo-text-accent {
    color: var(--leaf-green);
}

/* Navigation */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--leaf-green);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--forest-green);
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--forest-green);
    color: white;
}

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

.btn-secondary {
    background: transparent;
    color: var(--forest-green);
    border: 2px solid var(--forest-green);
}

.btn-secondary:hover {
    background: var(--forest-green);
    color: white;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--leaf-green);
}

.theme-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-switcher:hover {
    background: var(--light-gray);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--forest-green);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: 280px;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active .mobile-menu-panel {
    transform: translateX(0);
}

/* Sections */
section {
    padding: 5rem 1.5rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

/* Stats Cards */
.stat-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border-top: 4px solid var(--leaf-green);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--forest-green);
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Feature Cards */
.feature-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Goal Cards */
.goal-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--leaf-green);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

/* Footer */
footer {
    background: var(--charcoal);
    color: var(--light-gray);
    padding: 2rem 1.5rem;
    text-align: center;
}

[data-theme="dark"] footer {
    background: #0A0A0A;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Accessibility Focus Styles */
*:focus {
    outline: 2px solid var(--leaf-green);
    outline-offset: 2px;
}

/* Responsive Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-12 { margin-bottom: 3rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--leaf-green);
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    header, footer, .mobile-menu, .theme-toggle, .lang-switcher {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
}
