/* --- APPLICATION HUB STYLESHEET (2026) --- */

/* 1. ORIGINAL / STANDARD */
.theme-default {
    --bg-color-top: #1b1329;    
    --bg-color-bottom: #08040d; 
    --card-bg: #150f22;        
    --border-color: #31214a;   
    --text-main: #f4f2f7;      
    --text-muted: #9d8db5;     
    --accent: #00ff66;         
    --error: #ff3b3b;
}

/* 2. MINIMAL COLORS */
.theme-pastel-minimal {
    --bg-color-top: #585c72;    
    --bg-color-bottom: #2b2e3a; 
    --card-bg: #404454;        
    --border-color: #8458b3;   
    --text-main: #e8eaf5;      
    --text-muted: #ddbdf4;     
    --accent: #a0d2eb;         
    --error: #ff5555;
}

/* 3. ARCTIC GENERATION */
.theme-arctic-generation {
    --bg-color-top: #03484e;    
    --bg-color-bottom: #00171a; 
    --card-bg: #024950;        
    --border-color: #964734;   
    --text-main: #afdde5;      
    --text-muted: #64868a;     
    --accent: #0fa4af;         
    --error: #ff4444;
}

/* 4. CYBER NEON */
.theme-cyber-neon {
    --bg-color-top: #120e24;    
    --bg-color-bottom: #06040d; 
    --card-bg: #1a153a;        
    --border-color: #ff007f;   
    --text-main: #ffffff;      
    --text-muted: #8b82b9;     
    --accent: #00f0ff;         
    --error: #ff0055;
}

/* 5. WARM MOCHA */
.theme-warm-mocha {
    --bg-color-top: #2c2523;    
    --bg-color-bottom: #191413; 
    --card-bg: #362e2b;        
    --border-color: #a38a7e;   
    --text-main: #fcfaf2;      
    --text-muted: #bcaba0;     
    --accent: #d4a373;         
    --error: #de6b6b;
}

/* 6. FOREST SAGE */
.theme-forest-sage {
    --bg-color-top: #222e25;    
    --bg-color-bottom: #111712; 
    --card-bg: #2a3a2f;        
    --border-color: #4a6351;   
    --text-main: #f0f5f1;      
    --text-muted: #8da393;     
    --accent: #a3b19b;         
    --error: #c96b6b;
}

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

html, body {
    min-height: 100vh;
}

body {
    color: var(--text-main);
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    padding-bottom: 40px;
    position: relative;
    z-index: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, var(--bg-color-top) 0%, var(--bg-color-bottom) 100%);
    z-index: -1;
    pointer-events: none;
    transition: background 0.3s ease;
}

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

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 40px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
}

.nav-links { 
    display: flex; 
    gap: 15px; 
}

.nav-item {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.nav-item:hover { color: var(--text-main); }
.nav-item.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 255, 102, 0.05);
}

.theme-select-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.main-nav .btn {
    margin-left: 5px;
    height: 35px;
    padding: 0 16px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
}

.theme-dropdown {
    background: var(--bg-color-bottom);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    font-family: inherit;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
    height: 35px;
}

.logo { font-weight: bold; letter-spacing: 1px; color: var(--text-main); }

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}
.card-header h2 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; }

.grid-list-full, .custom-feed-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 16px; 
}
@media (min-width: 650px) { 
    .grid-list-full, .custom-feed-grid { grid-template-columns: repeat(2, 1fr); } 
}

.link-item {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    background: rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.thumb-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0,0,0,0.3);
}

.link-card-body { padding: 16px; display: flex; justify-content: space-between; align-items: center; width: 100%; }
.link-details { display: flex; flex-direction: column; gap: 4px; }
.link-anchor { color: var(--accent); text-decoration: none; font-weight: bold; }
.link-anchor:hover { text-decoration: underline; }
.link-meta { font-size: 0.72rem; color: var(--text-muted); }

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center; z-index: 1000;
}
.modal-content { width: 100%; max-width: 450px; padding: 20px; }
.modal-close-btn { background: transparent; color: var(--text-muted); border: none; cursor: pointer; font-family: inherit; font-size: 0.8rem; text-transform: uppercase; }
.modal-close-btn:hover { color: var(--error); }
.form-group { margin-bottom: 20px; }
label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; }

input {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    padding: 12px;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
}
input:focus { border-color: var(--accent); }

.inline-form { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 750px) { .inline-form { flex-direction: row; } }

.btn { background: rgba(0,0,0,0.2); color: var(--text-main); border: 1px solid var(--border-color); padding: 12px 24px; font-family: inherit; cursor: pointer; font-weight: bold; text-transform: uppercase; font-size: 0.85rem; transition: all 0.15s ease; }
.btn-primary { background: var(--accent); color: #000; border-color: var(--accent); }
.btn-primary:hover { opacity: 0.9; box-shadow: 0 0 12px var(--accent); }
.btn-danger { background: transparent; color: var(--text-muted); border: 1px solid transparent; padding: 4px 8px; font-size: 0.9rem; }
.btn-danger:hover { color: var(--error); border-color: rgba(255, 59, 59, 0.2); }
.btn-block { width: 100%; }

.tabs-container { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.tab-btn { background: rgba(0,0,0,0.1); color: var(--text-muted); border: 1px solid var(--border-color); padding: 8px 16px; font-family: inherit; cursor: pointer; font-size: 0.8rem; text-transform: uppercase; }
.tab-btn:hover { color: var(--text-main); }
.tab-btn.active { background: rgba(255,255,255,0.05); color: var(--accent); border-color: var(--accent); }

.hidden { display: none !important; }
.error-text { color: var(--error); font-size: 0.85rem; margin-top: 12px; }
.badge { background: rgba(0,0,0,0.2); padding: 4px 8px; font-size: 0.75rem; border: 1px solid var(--border-color); color: var(--text-muted); }
.fade-in { animation: fadeIn 0.3s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
