/* DraftCamera Section Styles */
/* Extends design-tokens.css with DraftCamera-specific overrides */
/* MUST import /css/design-tokens.css first in HTML */

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

body {
    font-family: var(--font-primary);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--bg-gray);
}

/* ========================================
   Header
   ======================================== */
header {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: var(--space-2) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

header .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-semibold);
}

/* Logo styling (when using common header structure) */
header .logo {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

header .logo a {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    text-decoration: none;
    color: var(--text-light);
}

.logo img {
    height: 40px;
    vertical-align: middle;
    margin-right: 10px;
}

header .logo span {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-semibold);
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: var(--font-size-small);
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    min-height: var(--min-tap-area);
}

nav a:hover {
    opacity: 0.7;
}

/* ========================================
   Main Content
   ======================================== */
main {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--space-6) var(--container-padding);
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    text-align: center;
    padding: var(--space-8) 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-6);
}

.hero h2 {
    font-size: var(--font-size-h1);
    margin-bottom: var(--space-2);
    font-weight: var(--font-weight-bold);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ========================================
   Content Sections
   ======================================== */
section {
    background: var(--bg-light);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--space-3);
    color: var(--text-dark);
    font-weight: var(--font-weight-semibold);
}

h3 {
    font-size: var(--font-size-h3);
    margin-top: var(--space-4);
    margin-bottom: var(--space-2);
    color: var(--text-dark);
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: 1.1rem;
    margin-top: var(--space-3);
    margin-bottom: var(--space-2);
    color: var(--text-dark);
    font-weight: var(--font-weight-semibold);
}

p {
    margin-bottom: var(--space-2);
    line-height: var(--line-height-base);
}

ul, ol {
    margin-left: var(--space-3);
    margin-bottom: var(--space-2);
}

li {
    margin-bottom: var(--space-1);
    line-height: var(--line-height-base);
}

/* ========================================
   Feature List
   ======================================== */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-3);
    margin: var(--space-4) 0;
}

.feature-card {
    padding: var(--space-3);
    background: var(--bg-gray);
    border-radius: var(--border-radius-small);
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-1);
    margin-top: 0;
    color: var(--primary-blue);
}

.feature-card p {
    margin-bottom: 0;
}

/* Legacy support for .feature-item (if any page still uses it) */
.feature-item {
    padding: var(--space-3);
    background: var(--bg-gray);
    border-radius: var(--border-radius-small);
    transition: var(--transition-base);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-1);
    color: var(--primary-blue);
}

/* ========================================
   Buttons - using design-tokens.css definition
   ======================================== */

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

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

/* ========================================
   Footer
   ======================================== */
footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    text-align: center;
    padding: var(--space-4) 0;
    margin-top: var(--space-8);
}

footer p {
    opacity: 0.8;
    margin-bottom: 0;
}

footer .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

footer .footer-links {
    list-style: none;
    display: flex;
    gap: var(--space-2);
    margin: 0;
}

footer .footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: var(--font-size-small);
    opacity: 0.8;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    min-height: var(--min-tap-area);
}

footer .footer-links a:hover {
    opacity: 1;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: var(--space-2);
    }

    nav ul {
        gap: var(--space-2);
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h2 {
        font-size: var(--font-size-h2);
    }

    .hero p {
        font-size: var(--font-size-body);
    }

    main {
        padding: var(--space-4) var(--space-2);
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}
