/* Professional Feriepenger Calculator - Modern Design System */

/* CSS Variables for consistent theming */
:root {
    --primary-blue: #0066CC;
    --primary-dark: #004C99;
    --primary-light: #3385D6;
    --success-green: #10B981;
    --success-dark: #059669;
    --warning-orange: #F59E0B;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-tertiary: #6B7280;
    --border-light: #E5E7EB;
    --border-medium: #D1D5DB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', 'Helvetica Neue', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: #f6f9ff
    background-attachment: fixed;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Site Header - Premium Branding */
.site-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
}

.site-logo:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.site-logo:active {
    transform: translateY(0);
}

.logo-icon {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Mobile optimization for site header */
@media (max-width: 480px) {
    .site-header {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .site-logo {
        font-size: 1.25rem;
    }

    .logo-icon {
        font-size: 1.75rem;
    }
}

/* Navigation - Professional and Clean */
.main-nav {
    background: var(--bg-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-light);
}

.nav-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) 0;
}

.nav-section:not(:last-child) {
    border-bottom: 1px solid var(--bg-tertiary);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.nav-label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: var(--spacing-xs);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

/* Header - Bold and Modern */
header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.025em;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    font-weight: 400;
}

/* Main content */
main {
    flex: 1;
}

/* Calculator Form - Premium Card Design */
.calculator-form {
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--border-light);
    position: relative;
}

.calculator-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-light));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
}

legend {
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
}

/* Input Fields - Modern and Clean */
input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 0.875rem var(--spacing-md);
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 1.0625rem;
    transition: all 0.2s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 500;
}

input[type="text"]:hover {
    border-color: var(--border-medium);
}

input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

small {
    display: block;
    margin-top: var(--spacing-xs);
    color: var(--text-tertiary);
    font-size: 0.8125rem;
}

/* Radio Buttons - Beautiful Card Style */
fieldset {
    border: none;
    padding: 0;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.radio-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: var(--spacing-md);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    background: var(--bg-primary);
}

.radio-label:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-sm);
}

.radio-label input[type="radio"] {
    margin-right: var(--spacing-md);
    margin-top: 0.125rem;
    accent-color: var(--primary-blue);
    width: 18px;
    height: 18px;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--primary-blue);
    background: rgba(0, 102, 204, 0.03);
    box-shadow: var(--shadow-md);
}

.radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--primary-blue);
}

.radio-label span {
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
}

/* Checkbox - Matching Style */
.checkbox-group {
    margin-bottom: var(--spacing-lg);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: var(--spacing-md);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-sm);
}

.checkbox-label:has(input[type="checkbox"]:checked) {
    border-color: var(--primary-blue);
    background: rgba(0, 102, 204, 0.03);
}

.checkbox-label input[type="checkbox"] {
    margin-right: var(--spacing-md);
    accent-color: var(--primary-blue);
    width: 20px;
    height: 20px;
}

.checkbox-label span {
    flex: 1;
    font-weight: 500;
}

/* Calculate Button - Premium Gradient */
.calculate-btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.01em;
}

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

.calculate-btn:active {
    transform: translateY(0);
}

.rate-info {
    margin-top: var(--spacing-md);
    text-align: center;
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.rate-info small {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Result Card - Stunning Design */
.result {
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success-green), var(--success-dark));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.result.hidden {
    display: none;
}

.result h3 {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-lg);
}

.result-amount {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    border-radius: var(--radius-lg);
    font-size: 3rem;
    font-weight: 800;
    color: var(--success-dark);
    letter-spacing: -0.02em;
}

#result-value {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.result-details {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
}

.result-details p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-details ul {
    list-style: none;
    padding: 0;
}

.result-details li {
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-primary);
}

.result-details span {
    font-weight: 700;
    color: var(--primary-blue);
}

.disclaimer {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--warning-orange);
    margin-bottom: var(--spacing-lg);
}

.disclaimer p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.disclaimer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.disclaimer a:hover {
    text-decoration: underline;
}

/* Share Section */
.share-section {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-light);
}

.share-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.share-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.share-section small {
    color: var(--text-tertiary);
    text-align: center;
    display: block;
}

/* Content Sections - Clean and Readable */
.intro-section,
.content-section {
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--border-light);
}

.intro-section h2,
.content-section h2 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.content-section h2:not(:first-child) {
    margin-top: var(--spacing-2xl);
}

.content-section h3 {
    color: var(--text-primary);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
    font-weight: 600;
}

.intro-section p,
.content-section p {
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.content-section ul,
.content-section ol {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-xl);
    line-height: 1.7;
}

.content-section li {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

.content-section a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.content-section a:hover {
    text-decoration: underline;
}

/* Related Links - Card Style */
.related-links {
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: var(--spacing-xl);
    border: 1px solid var(--border-light);
}

.related-links h2,
.related-links h3 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.related-links h3 {
    font-size: 1.125rem;
    margin-top: var(--spacing-xl);
    font-weight: 600;
}

.related-links ul {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-md) 0;
}

.related-links li {
    margin-bottom: var(--spacing-xs);
}

.related-links a {
    color: var(--primary-blue);
    text-decoration: none;
    display: inline-block;
    padding: var(--spacing-xs) 0;
    font-weight: 500;
    transition: color 0.2s ease;
}

.related-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* FAQ Sections */
.faq-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--border-light);
}

.faq-section summary {
    cursor: pointer;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
    border: none;
    font-weight: 600;
    color: var(--text-primary);
    user-select: none;
    font-size: 1rem;
}

.faq-section[open] summary {
    border-bottom: 1px solid var(--border-light);
}

.faq-content {
    padding: var(--spacing-lg);
}

.faq-item {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9375rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* FAQ Page Styles */
.faq-content-page {
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--border-light);
}

.faq-item-page {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-light);
}

.faq-item-page:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item-page h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.faq-item-page p {
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

.faq-item-page ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-xl);
}

.faq-item-page li {
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
}

.faq-item-page a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.faq-item-page a:hover {
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
}

.cta-section h2,
.cta-section h3 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.cta-btn {
    display: inline-block;
    background: white;
    color: var(--primary-blue);
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

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

/* Footer - Professional */
footer {
    margin-top: auto;
    padding-top: var(--spacing-xl);
}

.legal-notice {
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.legal-notice p {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.legal-notice p:last-child {
    margin-bottom: 0;
}

.privacy {
    font-style: italic;
    color: var(--text-tertiary);
}

.sources {
    margin-top: var(--spacing-md);
}

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

.sources a:hover {
    text-decoration: underline;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .container {
        padding: var(--spacing-md);
    }

    header {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    header h1 {
        font-size: 1.75rem;
    }

    .calculator-form,
    .result,
    .intro-section,
    .content-section {
        padding: var(--spacing-lg);
    }

    .result-amount {
        font-size: 2.25rem;
        padding: var(--spacing-lg);
    }

    .nav-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-label {
        margin-bottom: var(--spacing-xs);
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-btn {
        width: 100%;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Partial year note */
.partial-year-note {
    background: linear-gradient(135deg, #EBF8FF, #E6FFFA);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
    border-left: 4px solid var(--primary-blue);
}

.partial-year-note p {
    margin: var(--spacing-xs) 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.partial-year-note p:first-child {
    margin-top: 0;
}

.partial-year-note p:last-child {
    margin-bottom: 0;
}

.partial-year-note strong {
    color: var(--text-primary);
}

/* Print styles */
@media print {
    body {
        background: white;
    }

    .share-section,
    .calculate-btn,
    .main-nav {
        display: none;
    }

    .result {
        box-shadow: none;
        border: 2px solid #333;
    }
}
