/* ===================================
   AI Projekt - Landningssida - Stilmall
   Skapat: 2026-01-17
   =================================== */

/* CSS-variabler för enkel anpassning */
:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --dark: #1e293b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* Reset och grundläggande styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
}

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

/* Hero-sektion */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Knappar */
.btn {
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-github {
    background: #24292e;
    color: white;
}

.btn-github:hover {
    background: #2c3238;
    transform: translateY(-2px);
}

/* Översikts-sektion */
.overview {
    padding: 80px 20px;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
}

.overview-text {
    font-size: 1.2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Stats-kort */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Projektstruktur */
.structure {
    padding: 80px 20px;
    background: var(--bg-light);
}

.folder-tree {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    font-family: 'Courier New', monospace;
    line-height: 2;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Projekt-sektion */
.projects {
    padding: 80px 20px;
    background: white;
}

.project-card {
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.project-card.featured {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: var(--primary-color);
}

.project-card.upcoming {
    opacity: 0.7;
    background: #f9fafb;
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-card.upcoming .project-badge {
    background: var(--warning-color);
}

.project-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.project-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.project-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
}

/* Projekt-funktioner */
.project-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.feature {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

/* Projekt-teknik */
.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.tech {
    background: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Projekt-länkar */
.project-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.link-btn {
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
}

.link-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
    transform: translateY(-2px);
}

.link-btn.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.link-btn.primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Projekt-extra */
.project-extra {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.extra-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.extra-link:hover {
    text-decoration: underline;
}

/* Status-badge */
.project-status {
    margin-top: 20px;
}

.status-badge {
    background: var(--warning-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

/* Guider-sektion */
.guides {
    padding: 80px 20px;
    background: var(--bg-light);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.guide-card {
    background: white;
    padding: 35px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: var(--transition);
}

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

.guide-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.guide-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.guide-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.guide-link:hover {
    text-decoration: underline;
}

/* Interaktiv sektion */
.interactive {
    padding: 80px 20px;
    background: white;
}

.folder-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.folder-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--border);
}

.folder-item:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.folder-item.root {
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    border-color: var(--primary-color);
}

.folder-item.upcoming-folder {
    opacity: 0.6;
}

.folder-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.folder-name {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.folder-info {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius);
    border: 2px solid var(--primary-color);
    margin-top: 30px;
    display: none;
}

.folder-info.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Teknologi-sektion */
.tech {
    padding: 80px 20px;
    background: var(--bg-light);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.tech-item {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.tech-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.tech-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tech-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.made-with {
    font-size: 0.95rem;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    display: none;
    z-index: 1000;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.scroll-top.visible {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Animationer */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   AI Tools Comparison Section
   Uppdatering: 2026-01-25
   =================================== */

.ai-tools {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.tool-card {
    background: white;
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border);
    transition: var(--transition);
}

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

.tool-card.cursor-card {
    border-top: 4px solid var(--primary-color);
}

.tool-card.claude-card {
    border-top: 4px solid var(--secondary-color);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.tool-icon {
    font-size: 2.5rem;
}

.tool-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.tool-badge {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tool-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.tool-features {
    list-style: none;
    margin-bottom: 20px;
}

.tool-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.tool-features li:last-child {
    border-bottom: none;
}

.tool-usecase {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Comparison Table */
.comparison-table {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-top: 40px;
    overflow-x: auto;
}

.comparison-table h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table tr:hover {
    background: var(--bg-light);
}

.comparison-note {
    background: white;
    border-left: 4px solid var(--success-color);
    padding: 20px;
    margin-top: 30px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.comparison-note p {
    margin: 0;
    color: var(--text-secondary);
}

/* Agent List in Project Cards */
.agent-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.agent {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===================================
   CLAUDE.md Hierarchy Section
   =================================== */

.claude-hierarchy {
    padding: 80px 20px;
    background: white;
}

.hierarchy-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.hierarchy-card {
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 350px;
    position: relative;
}

.hierarchy-level {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.hierarchy-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.hierarchy-card p {
    font-family: 'Courier New', monospace;
    background: var(--dark);
    color: #10b981;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.hierarchy-card ul {
    list-style: none;
    margin-bottom: 15px;
}

.hierarchy-card li {
    padding: 5px 0;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}

.hierarchy-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.hierarchy-note {
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: inline-block;
}

.hierarchy-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.hierarchy-benefit {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-left: 4px solid var(--success-color);
    padding: 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    max-width: 800px;
    margin: 30px auto 0;
}

.hierarchy-benefit p {
    margin: 0;
    color: var(--text-secondary);
}

/* Responsiv design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .folder-tree {
        padding: 20px;
        font-size: 0.95rem;
    }

    /* Responsiv för nya sektioner */
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .hierarchy-grid {
        flex-direction: column;
    }

    .hierarchy-arrow {
        transform: rotate(90deg);
    }

    .hierarchy-card {
        max-width: 100%;
    }

    .agent-list {
        justify-content: center;
    }
}
