/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #2d7a4f;
    --color-primary-dark: #1e5c3a;
    --color-primary-light: #4a9d6e;
    --color-secondary: #f4a825;
    --color-accent: #7b4ccc;
    --color-text: #333;
    --color-text-light: #666;
    --color-bg: #f9fafb;
    --color-white: #fff;
    --color-border: #e0e0e0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 60px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

header .tagline {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navigation */
nav {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    gap: 5px;
}

nav a {
    display: block;
    padding: 15px 20px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
}

nav a:hover {
    color: var(--color-primary);
    background: rgba(45, 122, 79, 0.05);
}

/* Main Content */
main {
    padding: 40px 0 60px;
}

.content-section {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

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

.content-section p {
    margin-bottom: 15px;
    color: var(--color-text-light);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.info-card {
    background: var(--color-bg);
    padding: 25px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
}

.info-card h3 {
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
}

.info-card ul {
    margin-left: 20px;
    margin-top: 10px;
}

.info-card li {
    margin-bottom: 5px;
    color: var(--color-text-light);
}

/* Tip and Warning Boxes */
.tip-box, .warning-box {
    padding: 20px 25px;
    border-radius: var(--radius-md);
    margin: 25px 0;
}

.tip-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid var(--color-primary);
}

.tip-box h4 {
    color: var(--color-primary-dark);
    margin-bottom: 10px;
}

.warning-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid #f57c00;
}

.warning-box h4 {
    color: #e65100;
    margin-bottom: 10px;
}

.warning-box.light {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-left: 4px solid #ffa000;
}

.warning-box.light h4 {
    color: #ff8f00;
}

.warning-box ul, .tip-box ul {
    margin-left: 20px;
    margin-top: 10px;
}

/* Spectrum Chart */
.spectrum-chart {
    margin: 30px 0;
}

.spectrum-bar {
    display: flex;
    height: 50px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.spectrum-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.spectrum-segment.uv { background: linear-gradient(135deg, #9c27b0, #7b1fa2); }
.spectrum-segment.blue { background: linear-gradient(135deg, #2196f3, #1976d2); }
.spectrum-segment.green { background: linear-gradient(135deg, #4caf50, #388e3c); }
.spectrum-segment.yellow { background: linear-gradient(135deg, #ffeb3b, #fbc02d); color: #333; }
.spectrum-segment.red { background: linear-gradient(135deg, #f44336, #d32f2f); }
.spectrum-segment.far-red { background: linear-gradient(135deg, #880e4f, #6a0039); }

.spectrum-labels {
    display: flex;
    justify-content: space-between;
    padding: 8px 5px;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.spectrum-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.spectrum-item {
    padding: 20px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
}

.spectrum-item h3 {
    color: var(--color-primary-dark);
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* Comparison Table */
.comparison-table {
    margin-top: 30px;
    overflow-x: auto;
}

.comparison-table h3 {
    margin-bottom: 15px;
    color: var(--color-primary-dark);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

tr:nth-child(even) {
    background: var(--color-bg);
}

tr:hover {
    background: #e8f5e9;
}

/* Distance Guide */
.distance-calculator h3 {
    color: var(--color-primary-dark);
    margin-bottom: 20px;
}

.distance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.distance-card {
    background: var(--color-bg);
    padding: 25px;
    border-radius: var(--radius-md);
    border-top: 4px solid var(--color-primary);
}

.distance-card h4 {
    color: var(--color-primary-dark);
    margin-bottom: 15px;
}

.distance-card ul {
    list-style: none;
    margin-bottom: 15px;
}

.distance-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.distance-card li:last-child {
    border-bottom: none;
}

.distance-card .example {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 10px;
}

.distance-card .example a {
    color: var(--color-primary);
    text-decoration: none;
}

.distance-card .example a:hover {
    text-decoration: underline;
}

/* Timing Guide */
.timing-guide h3 {
    color: var(--color-primary-dark);
    margin-bottom: 20px;
}

.timing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.timing-card {
    background: var(--color-bg);
    padding: 25px;
    border-radius: var(--radius-md);
    text-align: center;
}

.timing-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.timing-card h4 {
    color: var(--color-primary-dark);
    margin-bottom: 10px;
}

.timing-card .hours {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.timing-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Type Grid */
.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.type-card {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 25px;
    border: 1px solid var(--color-border);
}

.type-card h3 {
    color: var(--color-primary-dark);
    margin-bottom: 15px;
    text-align: center;
}

.type-image {
    text-align: center;
    margin-bottom: 15px;
}

.placeholder-icon {
    font-size: 3rem;
}

.type-card > p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.pros h4, .cons h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.pros h4 { color: var(--color-primary); }
.cons h4 { color: #d32f2f; }

.pros ul, .cons ul {
    list-style: none;
    font-size: 0.85rem;
}

.pros li, .cons li {
    padding: 4px 0;
    color: var(--color-text-light);
}

.pros li::before {
    content: "✓ ";
    color: var(--color-primary);
}

.cons li::before {
    content: "× ";
    color: #d32f2f;
}

.type-card .recommendation {
    font-size: 0.9rem;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
    margin-top: 10px;
}

.type-card .recommendation a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.type-card .recommendation a:hover {
    text-decoration: underline;
}

/* Product Recommendations */
.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.product-card {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 25px;
    position: relative;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.product-card.featured {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-md);
}

.product-card .badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--color-secondary);
    color: var(--color-text);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card.featured .badge {
    background: var(--color-primary);
    color: white;
}

.product-card h3 {
    color: var(--color-primary-dark);
    margin-bottom: 15px;
    margin-top: 5px;
}

.product-details ul {
    list-style: none;
    margin-bottom: 15px;
}

.product-details li {
    padding: 5px 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border);
}

.product-details li:last-child {
    border-bottom: none;
}

.product-details li::before {
    content: "• ";
    color: var(--color-primary);
}

.product-card > p {
    flex-grow: 1;
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.product-button {
    display: block;
    background: var(--color-primary);
    color: white;
    text-align: center;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.product-button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* FAQ Section */
.faq-list {
    margin-top: 20px;
}

.faq-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

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

.faq-item h3 {
    color: var(--color-primary-dark);
    font-size: 1.1rem;
    margin-bottom: 10px;
    cursor: pointer;
}

.faq-item p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Footer */
footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.9);
    padding: 40px 20px;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

.affiliate-disclosure {
    font-size: 0.85rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header .tagline {
        font-size: 1rem;
    }

    nav ul {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 10px;
    }

    nav a {
        padding: 12px 15px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .content-section {
        padding: 25px 20px;
    }

    .content-section h2 {
        font-size: 1.4rem;
    }

    .info-grid, .distance-grid, .timing-grid, .type-grid, .recommendation-grid {
        grid-template-columns: 1fr;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .spectrum-segment span {
        font-size: 0.7rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 40px 15px;
    }

    header h1 {
        font-size: 1.6rem;
    }

    .content-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .info-card, .distance-card, .timing-card, .type-card, .product-card {
        padding: 20px;
    }
}
