/* ============================================
   Logo & Ikon Generator - Main Styles
   ============================================ */

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --warning: #f59e0b;
    --danger: #ef4444;
    --purple: #8b5cf6;
    --pink: #ec489a;
    --cyan: #06b6d4;
    --dark: #1f2937;
    --light: #f8fafc;
    --gray: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--dark);
    line-height: 1.5;
}

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

/* ============================================
   Header
   ============================================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.logo i {
    font-size: 2rem;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: white;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    color: white;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   Generator Card
   ============================================ */
.generator-card {
    background: white;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.upload-area {
    border: 2px dashed var(--border);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--light);
}

.upload-area.drag-over {
    border-color: var(--primary);
    background: rgba(26, 115, 232, 0.05);
}

.upload-icon i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.upload-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-subtitle {
    color: var(--gray);
    font-size: 0.85rem;
}

.preview-container {
    margin: 1.5rem 0;
    text-align: center;
}

.preview-image img {
    max-width: 120px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    background: #f0f0f0;
    padding: 8px;
}

.file-info {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray);
}

/* ============================================
   Button Section
   ============================================ */
.button-section h3 {
    margin: 1.5rem 0 1rem;
    color: var(--dark);
    font-size: 1rem;
}

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

.btn {
    padding: 1rem;
    border: none;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.btn i {
    font-size: 1.5rem;
}

.btn small {
    font-size: 0.7rem;
    font-weight: normal;
    opacity: 0.8;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-pwa { background: var(--secondary); color: white; }
.btn-pwa:hover:not(:disabled) { background: var(--secondary-dark); transform: translateY(-2px); }

.btn-favicon { background: var(--warning); color: white; }
.btn-favicon:hover:not(:disabled) { background: #d97706; transform: translateY(-2px); }

.btn-ico { background: var(--purple); color: white; }
.btn-ico:hover:not(:disabled) { background: #7c3aed; transform: translateY(-2px); }

.btn-social { background: var(--pink); color: white; }
.btn-social:hover:not(:disabled) { background: #db2777; transform: translateY(-2px); }

.btn-os { background: var(--cyan); color: white; }
.btn-os:hover:not(:disabled) { background: #0891b2; transform: translateY(-2px); }

.btn-all { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.btn-all:hover:not(:disabled) { transform: translateY(-2px); }

/* ============================================
   Loading & States
   ============================================ */
.loading {
    text-align: center;
    padding: 2rem;
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.success {
    background: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 1rem;
    margin: 1rem 0;
    display: none;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 1rem;
    margin: 1rem 0;
    display: none;
}

/* ============================================
   Result Area
   ============================================ */
.result-area {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.result-area h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

.icon-item {
    text-align: center;
    background: var(--light);
    padding: 0.75rem;
    border-radius: 12px;
    transition: transform 0.2s;
}

.icon-item:hover {
    transform: scale(1.05);
}

.icon-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-bottom: 0.25rem;
}

.icon-item span {
    font-size: 10px;
    color: var(--gray);
    display: block;
}

.btn-download-all {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-download-all:hover {
    background: var(--primary-dark);
}

/* ============================================
   Guide Section
   ============================================ */
.guide-section, .about-section {
    background: white;
    border-radius: 2rem;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.guide-section h2, .about-section h2 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step-icon i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ============================================
   About Section
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-text ul, .about-tips ul {
    list-style: none;
    margin-top: 1rem;
}

.about-text li, .about-tips li {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-text li i {
    color: var(--secondary);
}

.about-tips {
    background: #fef3c7;
    padding: 1rem;
    border-radius: 1rem;
}

.about-tips h3 {
    color: #92400e;
    margin-bottom: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer-links {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

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

.footer-links a:hover {
    color: white;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .button-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .generator-card {
        padding: 1.5rem;
    }
    
    .upload-area {
        padding: 1.5rem;
    }
}

/* Legg til disse i style.css */

.session-note {
    font-size: 11px;
    color: #6c757d;
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.session-note a {
    color: #1a73e8;
    text-decoration: none;
}

.session-note a:hover {
    text-decoration: underline;
}

.btn-clear {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 0.5rem;
}

.btn-clear:hover {
    background: #dc2626;
}
/* Add to existing style.css */

.download-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 10px;
    color: #1a73e8 !important;
    text-decoration: none;
    background: #e8f0fe;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.2s;
}

.download-link:hover {
    background: #1a73e8;
    color: white !important;
}

.download-link i {
    font-size: 9px;
    margin-right: 3px;
}

.btn-clear {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-clear:hover {
    background: #dc2626;
}

.session-note {
    font-size: 11px;
    color: #6c757d;
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.session-note a {
    color: #1a73e8;
    text-decoration: none;
}

.session-note a:hover {
    text-decoration: underline;
}