/* DCAS Generated CSS v2.0 - Unique Design for  */
/* Concept: Algoritmiskt genererad design baserad på domännamn */
/* Style: light | Vibe: tech */

:root {
    --color-primary: #8fbc2d;
    --color-primary-light: #c2ef60;
    --color-primary-dark: #5c8900;
    --color-secondary: #743fde;
    --color-secondary-light: #9a65ff;
    --color-bg: #fcfcfc;
    --color-text: #1d1e19;
    --color-heading: #8fbc2d;
    --color-link: #8fbc2d;
    --color-text-light: #83847f;
    --color-border: #e9eae5;
    --color-card-bg: #ffffff;
    --font-heading: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 9999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-heading);
}

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

p { margin-bottom: 1rem; }

a {
    color: var(--color-link);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover { opacity: 0.8; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - transparent style */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;    background: transparent;
}
.site-header.scrolled {
    background: #8fbc2d;
    box-shadow: var(--shadow-md);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo img { height: 40px; width: auto; }

/* Smart logo parts for multi-part names */
.logo-text { display: inline-flex; align-items: baseline; }
.logo-main { /* inherits normal styling */ }
.logo-year {
    font-size: 0.6em;
    opacity: 0.85;
    font-weight: 600;
    margin-left: 0.1em;
    vertical-align: super;
    line-height: 1;
}
.logo-number {
    font-size: 0.75em;
    opacity: 0.9;
    font-weight: 600;
    margin-left: 0.05em;
    font-style: italic;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active { color: white; }

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

/* Hero - particles style */
.hero {
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;    background: linear-gradient(135deg, #8fbc2d 0%, #5c8900 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: white;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero with background image - stretch to cover */
.hero.with-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero.with-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 0;
}

/* Buttons - gradient style */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;    background: linear-gradient(135deg, #743fde 0%, #9a65ff 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(116,63,222,0.4);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(116,63,222,0.5);
}
.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

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

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.1rem;
}

/* Main Content */
main {
    padding: 4rem 0;
    min-height: 60vh;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: var(--radius-sm);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Cards - flat style */
.card {
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;    background: #f7f7f7;
}
.card:hover {
    background: #efefef;
}
.card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

/* Features Section */
.features {
    background: var(--color-primary);
    color: white;
    padding: 5rem 0;
    margin: 3rem 0;
}

.features h2 {
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

.features h2::after { background: white; }

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

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.feature-item h4 {
    color: white;
    margin-bottom: 0.75rem;
}

.feature-item p {
    opacity: 0.85;
    font-size: 0.95rem;
}

/* Lists & Tables */
ul, ol { margin: 1rem 0; padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

tr:hover { background: #f9f9f9; }

/* Footer */
.site-footer {
    background: #426f00;
    color: rgba(255,255,255,0.85);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.footer-section ul { list-style: none; padding: 0; }

.footer-section a {
    color: rgba(255,255,255,0.7);
    display: block;
    padding: 0.35rem 0;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-light); }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }

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

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

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-primary-dark);
        padding: 1rem;
        display: none;
        box-shadow: var(--shadow-lg);
    }
    
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { display: block; padding: 0.875rem 1rem; }
    
    .hero { padding: 3rem 0; }
    .hero h1 { font-size: 2rem; }
    
    .card-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
}

/* Print */
@media print {
    .site-header, .site-footer, .admin-bar { display: none; }
    body { font-size: 12pt; }
}

/* ================================ */
/* Blog Styles (ContentBot Integration) */
/* ================================ */

/* Blog Listing */
.blog-listing h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.blog-intro {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-card {
    display: flex;
    gap: 1.5rem;
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

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

.post-card .post-thumbnail {
    width: 280px;
    min-width: 280px;
    height: 180px;
    object-fit: cover;
}

.post-card .post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card .post-date {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.post-card h2 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-card h2 a {
    color: var(--color-heading);
}

.post-card h2 a:hover {
    color: var(--color-primary);
}

.post-card p {
    color: var(--color-text-light);
    flex: 1;
    margin-bottom: 1rem;
}

.post-card .read-more {
    font-weight: 600;
    color: var(--color-primary);
}

.no-posts {
    text-align: center;
    color: var(--color-text-light);
    padding: 3rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

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

.pagination .page-info {
    color: var(--color-text-light);
}

/* Blog Post Single */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post .back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.blog-post .back-link:hover {
    color: var(--color-primary);
}

.blog-post .post-header {
    margin-bottom: 2rem;
}

.blog-post .post-header h1 {
    margin-bottom: 1rem;
}

.blog-post .post-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.blog-post .featured-image {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.blog-post .post-body {
    line-height: 1.8;
}

.blog-post .post-body h2,
.blog-post .post-body h3 {
    margin-top: 2rem;
}

.blog-post .post-body p {
    margin-bottom: 1.25rem;
}

.blog-post .post-body img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.blog-post .post-meta-tags {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.blog-post .post-footer {
    margin-top: 3rem;
    text-align: center;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-page h1 {
    font-size: 5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.error-page p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

/* Blog Mobile */
@media (max-width: 768px) {
    .post-card {
        flex-direction: column;
    }
    
    .post-card .post-thumbnail {
        width: 100%;
        min-width: auto;
        height: 200px;
    }
    
    .blog-post .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}