/* ============================================================================
   INSULIN TRACKER - SHARED STYLES
   Version: 2.6.0
   © 2026 Hansen-Software.de
   ============================================================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #4caf50;
    --info-color: #2196f3;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --dark-color: #2c3e50;
    --light-gray: #f8f9fa;
}

/* ============================================================================
   HEADER STYLES
   ============================================================================ */

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 600;
}

.header p {
    font-size: 18px;
    opacity: 0.9;
}

/* ============================================================================
   HERO SECTION (Landing Page)
   ============================================================================ */

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
}

.version-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

/* ============================================================================
   CONTAINER & SECTIONS
   ============================================================================ */

.container {
    max-width: 900px;
    margin: -40px auto 60px;
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
}

.section h3 {
    color: var(--secondary-color);
    font-size: 22px;
    margin: 25px 0 15px 0;
}

.section p {
    margin-bottom: 15px;
    font-size: 16px;
    text-align: justify;
}

.section ul {
    margin: 15px 0 15px 30px;
}

.section li {
    margin-bottom: 10px;
    font-size: 16px;
}

.section-title {
    text-align: center;
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 60px;
    font-weight: 700;
}

/* ============================================================================
   BOXES & CARDS
   ============================================================================ */

.highlight-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.warning-box {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(211, 47, 47, 0.1) 100%);
    border-left: 4px solid var(--danger-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.contact-box {
    background: linear-gradient(180deg, var(--light-gray) 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    text-align: center;
}

.contact-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-box a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-box a:hover {
    text-decoration: underline;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn {
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

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

/* ============================================================================
   FEATURE CARDS (Landing Page)
   ============================================================================ */

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

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

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.feature-card.rapid { border-top-color: var(--success-color); }
.feature-card.basal { border-top-color: var(--info-color); }
.feature-card.glp1 { border-top-color: #9c27b0; }
.feature-card.bp { border-top-color: var(--danger-color); }
.feature-card.export { border-top-color: var(--warning-color); }
.feature-card.privacy { border-top-color: #607d8b; }

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--danger-color) 0%, #d32f2f 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    vertical-align: middle;
}

/* ============================================================================
   HIGHLIGHTS SECTION
   ============================================================================ */

.highlights {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.highlights-content {
    max-width: 1200px;
    margin: 0 auto;
}

.highlights h2 {
    font-size: 42px;
    margin-bottom: 50px;
}

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

.stat-box {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* ============================================================================
   ROADMAP SECTION
   ============================================================================ */

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

.roadmap-timeline {
    position: relative;
    padding-left: 40px;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.roadmap-item {
    position: relative;
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.roadmap-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.roadmap-item.done::before {
    background: var(--success-color);
    box-shadow: 0 0 0 3px var(--success-color);
}

.roadmap-item.planned::before {
    background: var(--warning-color);
    box-shadow: 0 0 0 3px var(--warning-color);
}

.roadmap-version {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.roadmap-version.done {
    background: var(--success-color);
}

.roadmap-version.planned {
    background: var(--warning-color);
}

.roadmap-item h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.roadmap-item ul {
    list-style: none;
    padding: 0;
}

.roadmap-item li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.roadmap-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* ============================================================================
   DOWNLOAD SECTION
   ============================================================================ */

.download {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.download h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.download p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.system-requirements {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    margin: 40px auto 0;
    backdrop-filter: blur(10px);
    text-align: left;
}

.system-requirements h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.system-requirements ul {
    list-style: none;
}

.system-requirements li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.system-requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

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

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

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

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

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

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
        margin: -20px 20px 40px;
    }
    
    .header h1 {
        font-size: 32px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section h2 {
        font-size: 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}
