/* SpotOnDerm - Main Stylesheet */

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

body {
    font-family: var(--font-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--background-main);
}

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

/* Navigation */
.navigation {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.nav-logo {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-family: var(--font-primary);
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.site-tagline {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 16px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 42px;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-photo {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.credentials-bar {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.credentials-bar span {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(44,82,130,0.3);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

/* Featured Articles Section */
.featured-articles {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
}

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

.article-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
}

.article-card.featured .article-category,
.article-card.featured .article-meta,
.article-card.featured p {
    color: rgba(255,255,255,0.9);
}

.article-card.featured h3 {
    color: white;
}

.article-category {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-card h3 {
    font-family: var(--font-primary);
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 5px;
}

.article-card.featured .read-more {
    color: white;
}

/* Topic Categories */
.topic-categories {
    padding: 80px 0;
    background: var(--background-alt);
}

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

.category-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background: var(--primary-color);
}

.category-card:hover * {
    color: white !important;
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.category-card h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 0;
    background: var(--primary-color);
}

.newsletter-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-box h2 {
    color: white;
    font-family: var(--font-primary);
    font-size: 32px;
    margin-bottom: 15px;
}

.newsletter-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.privacy-note {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 15px;
}

/* Product Recommendations */
.recommendation-preview {
    padding: 80px 0;
}

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

.product-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 4px solid var(--secondary-color);
}

.product-card h4 {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-reason {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.product-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* About Preview */
.about-preview {
    padding: 80px 0;
    background: var(--background-alt);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-family: var(--font-primary);
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background: var(--background-dark);
    color: var(--text-white);
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 30px;
}

.footer-main h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-main p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-column h4 {
    margin-bottom: 15px;
}

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

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

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

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

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

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

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

.disclaimer-note {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 60px 0;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-family: var(--font-primary);
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
}

/* About Page Specific */
.about-hero {
    padding: 80px 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
}

.profile-photo-large {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.about-intro h1 {
    font-family: var(--font-primary);
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.lead {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.credentials-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.credentials-list span {
    background: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Articles Page */
.articles-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding: 60px 0;
}

.articles-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.sidebar-section h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
}

.category-list,
.popular-list {
    list-style: none;
}

.category-list li,
.popular-list li {
    margin-bottom: 10px;
}

.category-list a,
.popular-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list a:hover,
.popular-list a:hover,
.category-list a.active {
    color: var(--primary-color);
}

.article-item {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.article-item h2 {
    font-family: var(--font-primary);
    font-size: 26px;
    margin: 15px 0;
    line-height: 1.3;
}

.article-item h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-item h2 a:hover {
    color: var(--primary-dark);
}

.article-date {
    color: var(--text-light);
    font-size: 14px;
    margin-right: 15px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.read-time {
    color: var(--text-light);
    font-size: 14px;
}

.read-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Resources Page */
.product-rec {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.product-rec h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.product-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

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

.product-item h4 {
    color: var(--primary-dark);
    font-size: 18px;
    margin-bottom: 10px;
}

.product-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.product-price {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.product-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-tags span {
    background: var(--background-accent);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 60px 0;
}

.contact-form {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .profile-photo,
    .profile-photo-large {
        max-width: 250px;
        margin: 0 auto;
    }

    .nav-menu {
        display: none;
    }

    .articles-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .articles-sidebar {
        position: static;
    }

    .article-card.featured {
        grid-column: span 1;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
}