/*
Theme Name: Jerpa Grid Theme
Theme URI: https://jerpa.se
Author: Jerker Eriksson
Author URI: https://jerpa.se
Description: Ett flexibelt grid-baserat tema med anpassningsbara layouter
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jerpa-theme
*/

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #141b2d;
    --bg-card: #1a2332;
    --accent-primary: #00d9ff;
    --accent-secondary: #7c3aed;
    --text-primary: #e8eef5;
    --text-secondary: #94a3b8;
    --border: #2d3748;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

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

body {
    font-family: 'Work Sans', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 1rem;
}

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

header {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
}

h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

/* Grid Layouts */
.grid-container {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* 4 columns */
.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 5 columns */
.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* 1/5 + 4/5 */
.grid-1-4 {
    grid-template-columns: 1fr 4fr;
}

/* 1/4 + 3/4 */
.grid-1-3 {
    grid-template-columns: 1fr 3fr;
}

/* 2/4 + 2/4 (hälften vardera) */
.grid-2-2 {
    grid-template-columns: 1fr 1fr;
}

.box {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.box:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
    min-height: 2.5rem;
}

.box-title {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--accent-primary);
}

.box-icon {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 12px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #556575;
}

.box-content {
    padding-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.box-info-item {
    display: flex;
    flex-direction: column;
}

.box-info-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.box-info-value {
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

footer {
    margin-top: 3rem;
    padding: 2rem 0 1rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .grid-4,
    .grid-5,
    .grid-1-4,
    .grid-1-3,
    .grid-2-2 {
        grid-template-columns: 1fr;
    }
}
