/* Electric Boats News - Main Styles */
:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --secondary: #0c4a6e;
    --accent: #06b6d4;
    --bg: #f0f9ff;
    --bg-alt: #e0f2fe;
    --text: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --gradient-start: #0c4a6e;
    --gradient-end: #06b6d4;
}

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

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ========== HERO HEADER ========== */
.hero {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--secondary) 50%, var(--accent) 100%);
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="waves" x="0" y="0" width="100" height="20" patternUnits="userSpaceOnUse"><path d="M0 10 Q25 0 50 10 T100 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/><path d="M0 15 Q25 5 50 15 T100 15" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect fill="url(%23waves)" width="100" height="100"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.hero h1 .icon {
    display: inline-block;
    margin-right: 0.5rem;
    animation: sail 3s ease-in-out infinite;
}

@keyframes sail {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.hero .tagline {
    font-size: 1.35rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== WAVE SEPARATOR ========== */
.wave-separator {
    position: relative;
    height: 60px;
    background: var(--bg);
}

.wave-separator svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
}

/* ========== NAV BAR ========== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary);
    text-decoration: none;
}

.nav-logo .icon { font-size: 1.5rem; }

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

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

.nav-links a.active {
    background: var(--primary);
    color: var(--white);
}

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 8px;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
}

/* ========== MAIN CONTENT ========== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.ad-space {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    border: 2px dashed #bae6fd;
    padding: 1.5rem;
    text-align: center;
    margin: 2rem 0;
    border-radius: 12px;
}

.ad-space span {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ========== ARTICLES ========== */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: var(--primary);
    border-radius: 2px;
}

article {
    background: var(--white);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s;
}

article:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.article-category {
    display: inline-block;
    background: var(--bg);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

article h2 {
    color: var(--secondary);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

article h2 a {
    color: inherit;
    text-decoration: none;
}

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

article .meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

article .meta .dot {
    width: 3px;
    height: 3px;
    background: var(--text-light);
    border-radius: 50%;
}

article p {
    color: var(--text);
    margin-bottom: 1rem;
}

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

article .read-more:hover {
    gap: 0.75rem;
}

/* ========== FEATURED ========== */
.featured {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.featured h2 {
    color: var(--white);
}

.featured .read-more {
    color: var(--accent);
}

/* ========== NEWSLETTER ========== */
.newsletter {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    margin: 2rem 0;
}

.newsletter h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.newsletter p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.newsletter form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter input {
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 10px;
    width: 280px;
    font-size: 1rem;
}

.newsletter button {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s;
}

.newsletter button:hover {
    transform: scale(1.02);
}

/* ========== FOOTER ========== */
footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding: 3rem 1rem;
    margin-top: 3rem;
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.footer-links a:hover {
    color: var(--white);
}

.affiliate-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.85rem;
}

/* ========== ARTICLE PAGE STYLES ========== */
.article-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
}

.article-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.article-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: var(--white);
}

.article-content h2 {
    color: var(--secondary);
    margin: 2rem 0 1rem;
}

.article-content h3 {
    color: var(--secondary);
    margin: 1.5rem 0 0.75rem;
}

.article-content ul, .article-content ol {
    margin: 1rem 0 1rem 1.5rem;
}

.article-content li {
    margin: 0.5rem 0;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
}

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

.key-points {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.key-points h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.key-points ul { margin-left: 1.5rem; }
.key-points li { margin: 0.5rem 0; }

.callout {
    background: #e0f2fe;
    border-left: 4px solid var(--primary);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.callout strong {
    color: var(--secondary);
}

.article-meta {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ========== RELATED ARTICLES ========== */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.related-articles h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

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

.related-item {
    background: var(--bg);
    padding: 1rem;
    border-radius: 8px;
}

.related-item h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.related-item h4 a {
    color: inherit;
}

.related-item h4 a:hover {
    color: var(--primary);
}

.related-item .meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ========== BREADCRUMBS ========== */
.breadcrumbs {
    padding: 1rem 1.5rem;
    background: var(--white);
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary);
}

.breadcrumbs span {
    margin: 0 0.5rem;
}

/* ========== ABOUT PAGE ========== */
.about-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
}

.about-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.about-hero .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: var(--white);
    border-radius: 12px;
    margin-top: -2rem;
}

.about-content h2 {
    color: var(--secondary);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg);
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content ul {
    margin-left: 1.5rem;
}

.about-content li {
    margin: 0.5rem 0;
}

/* ========== CONTACT FORM ========== */
.contact-form {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

.contact-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

.contact-form button:hover {
    background: var(--primary-dark);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.25rem; }
    .hero .tagline { font-size: 1.1rem; }
    .hero-stats { gap: 1.5rem; }
    .stat-number { font-size: 1.5rem; }
    
    .navbar-inner { flex-direction: column; gap: 1rem; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    
    .newsletter input { width: 100%; }
    .newsletter button { width: 100%; }
    
    .footer-links { flex-direction: column; gap: 0.75rem; }
}

@media (max-width: 480px) {
    .hero { min-height: 280px; }
    .hero h1 { font-size: 1.75rem; }
    .hero-stats { gap: 1rem; }
    .stat-number { font-size: 1.25rem; }
    .stat-label { font-size: 0.75rem; }
    
    article { padding: 1.25rem; }
    article h2 { font-size: 1.15rem; }
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ========== PRIVACY POLICY ========== */
.privacy-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: var(--white);
    border-radius: 12px;
    margin-top: -2rem;
}

.privacy-content h2 {
    color: var(--secondary);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg);
}

.privacy-content h2:first-child {
    margin-top: 0;
}

.privacy-content ul {
    margin-left: 1.5rem;
}

.privacy-content li {
    margin: 0.5rem 0;
}

.last-updated {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}
