/*
Theme Name: Coastline Hub Main
Theme URI: https://coastlinehub.com
Author: Coastline Hub
Version: 1.0.0
Description: Dark retro theme with blue and black accents for the main Coastline Hub site.
Text Domain: coastline-hub-main
*/

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

body {
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #000;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,255,0,0.03) 2px, rgba(0,255,0,0.03) 4px);
    margin: 0;
    padding: 0;
    animation: flicker 0.15s infinite linear;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.98; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 50%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
    z-index: 9999;
}

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

/* Header */
.site-header {
    background-color: #111;
    border-bottom: 2px solid #00f;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 0 0 5px #00f, 0 0 10px #00f, 0 0 15px #00f;
}

.site-title a {
    text-decoration: none;
    color: #00f;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation li {
    margin-left: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #00f;
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: #00f;
    text-shadow: 0 0 5px #00f, 0 0 10px #00f;
}

.subsite-link {
    margin-left: 2rem;
}

.subsite-link a {
    text-decoration: none;
    color: #0f0;
    font-weight: 500;
    text-shadow: 0 0 5px #0f0, 0 0 10px #0f0;
    transition: color 0.3s;
}

.subsite-link a:hover {
    color: #0f0;
    text-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
}

/* Main content */
.main-content {
    background-color: #111;
    border: 2px solid #00f;
    margin: 2rem auto;
    padding: 2rem;
    box-shadow: 0 0 10px rgba(0,255,0,0.5), inset 0 0 20px rgba(0,255,0,0.1);
}

/* Home Page Styles */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    border-bottom: 1px solid #00f;
}

.hero-section h1 {
    font-size: 3rem;
    color: #00f;
    text-shadow: 0 0 10px #00f, 0 0 20px #00f, 0 0 30px #00f;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.2rem;
    color: #0f0;
    text-shadow: 0 0 5px #0f0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.section {
    background-color: #000;
    border: 1px solid #00f;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,255,0,0.3);
}

.section h2 {
    color: #00f;
    text-shadow: 0 0 5px #00f;
    margin-bottom: 1rem;
}

.section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.section-link {
    color: #0f0;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 0 3px #0f0;
    transition: all 0.3s;
}

.section-link:hover {
    text-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
}

.social-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.social-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #00f;
    color: #000;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    transition: all 0.3s;
    text-shadow: none;
}

.social-btn:hover {
    background-color: #0f0;
    box-shadow: 0 0 10px rgba(0,255,0,0.5);
}

.latest-posts {
    border-top: 1px solid #00f;
    padding-top: 2rem;
}

.latest-posts h2 {
    color: #00f;
    text-shadow: 0 0 5px #00f;
    margin-bottom: 1.5rem;
}

.post-preview {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.post-preview h3 {
    margin-bottom: 0.5rem;
}

.post-preview h3 a {
    color: #0f0;
    text-decoration: none;
    text-shadow: 0 0 3px #0f0;
}

.post-preview h3 a:hover {
    text-shadow: 0 0 10px #0f0;
}

.post-preview time {
    color: #888;
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    background-color: #111;
    color: #e0e0e0;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    border-top: 2px solid #00f;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
    }

    .main-navigation ul {
        margin-top: 1rem;
    }

    .main-navigation li {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}