/* =============================================================================
   Fishing Intel - Main Stylesheet
   ============================================================================= */

/* CSS Variables */
:root {
    --primary: #0066cc;
    --primary-dark: #004999;
    --secondary: #28a745;
    --accent: #ff6b35;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-heading: 'Segoe UI', Roboto, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================================================
   Header
   ============================================================================= */

.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: var(--gray);
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

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

/* =============================================================================
   Hero Section
   ============================================================================= */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

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

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

/* =============================================================================
   Main Content Grid
   ============================================================================= */

.main {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.content-main {
    min-width: 0;
}

/* =============================================================================
   Cards
   ============================================================================= */

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

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    color: inherit;
}

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

.card-image {
    position: relative;
    height: 180px;
    background: var(--gray-light);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fallback gradient backgrounds (shown when GIF doesn't load) */
.card:first-child .card-image {
    background: linear-gradient(135deg, 
        #0066cc 0%, #00aaff 20%, #44dd88 40%, 
        #ffcc00 60%, #ff6600 80%, #cc0000 100%
    );
}

.card:last-child .card-image {
    background: linear-gradient(135deg,
        #001a66 0%, #0066cc 25%, #00cc99 50%, 
        #88cc00 75%, #cc3300 100%
    );
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* =============================================================================
   Tips Section
   ============================================================================= */

.how-to {
    margin: 40px 0;
}

.how-to h2 {
    margin-bottom: 25px;
}

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

.tip {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.tip-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

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

.tip p {
    color: var(--gray);
    font-size: 14px;
}

/* =============================================================================
   Sidebar
   ============================================================================= */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-light);
}

.quick-links {
    list-style: none;
}

.quick-links li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-light);
}

.quick-links li:last-child {
    border-bottom: none;
}

.quick-links a {
    color: var(--dark);
    font-size: 14px;
}

.species-list {
    list-style: none;
}

.species-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
    font-size: 14px;
}

.species-list li:last-child {
    border-bottom: none;
}

.species-temp {
    color: var(--primary);
    font-weight: 600;
}

/* Sticky sidebar ad */
.sticky-ad {
    position: sticky;
    top: 80px;
}

/* =============================================================================
   AdSense Containers
   ============================================================================= */

.ad-container {
    background: var(--gray-light);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    border-radius: var(--radius-sm);
}

.ad-top {
    margin-top: 0;
}

.ad-inline {
    margin: 30px 0;
    min-height: 150px;
}

.ad-sidebar {
    min-height: 250px;
}

.ad-bottom {
    margin-bottom: 0;
}

/* =============================================================================
   Video Section
   ============================================================================= */

.video-section {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0;
}

.video-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

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

.video-card {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.video-placeholder {
    position: relative;
    height: 180px;
    background: #000;
    cursor: pointer;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.video-card h4 {
    padding: 15px;
    font-size: 14px;
}

.video-section .btn-outline {
    display: block;
    width: fit-content;
    margin: 0 auto;
    color: var(--white);
    border-color: var(--white);
}

.video-section .btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

/* =============================================================================
   Articles Section
   ============================================================================= */

.latest-articles {
    margin: 40px 0;
}

.latest-articles h2 {
    margin-bottom: 25px;
}

.article-grid {
    margin-bottom: 20px;
}

.article-placeholder {
    background: var(--white);
    padding: 40px;
    text-align: center;
    border-radius: var(--radius-md);
    color: var(--gray);
}

/* =============================================================================
   Footer
   ============================================================================= */

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 15px;
}

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

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

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

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

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

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

/* =============================================================================
   Map Page Specific Styles
   ============================================================================= */

.map-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.map-page .header {
    flex-shrink: 0;
}

.map-container {
    flex: 1;
    display: flex;
}

.map-wrapper {
    flex: 1;
    position: relative;
}

.map-sidebar {
    width: 300px;
    background: var(--white);
    padding: 20px;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
}

/* Weather Bar */
.weather-bar {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 30px;
    color: white;
}
.weather-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.weather-bar-header h3 {
    margin: 0;
    font-size: 1.1rem;
}
.weather-more-link {
    color: #90cdf4;
    font-size: 0.9rem;
    text-decoration: none;
}
.weather-more-link:hover {
    text-decoration: underline;
}
.weather-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}
.weather-current {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding-right: 30px;
    border-right: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}
.weather-temp-main {
    font-size: 2.5rem;
    font-weight: 700;
}
.weather-details {
    font-size: 0.85rem;
    color: #cbd5e0;
}
.weather-details div {
    margin: 2px 0;
}
.weather-forecast {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex: 1;
}
.forecast-day {
    text-align: center;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    min-width: 60px;
}
.forecast-day .day-name {
    font-size: 0.75rem;
    color: #a0aec0;
    margin-bottom: 5px;
}
.forecast-day .day-icon {
    font-size: 1.3rem;
    margin: 5px 0;
}
.forecast-day .day-temps {
    font-size: 0.85rem;
}
.forecast-day .day-temps .high {
    font-weight: 600;
}
.forecast-day .day-temps .low {
    color: #a0aec0;
}
.weather-loading {
    color: #a0aec0;
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    .weather-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .weather-current {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        padding-right: 0;
        padding-bottom: 15px;
        width: 100%;
    }
    .weather-forecast {
        width: 100%;
        justify-content: space-between;
    }
}

/* =============================================================================
   Responsive Design
   ============================================================================= */

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-widget {
        flex: 1;
        min-width: 250px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .map-container {
        flex-direction: column;
    }
    
    .map-sidebar {
        width: 100%;
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .coord-display {
        top: auto;
        bottom: 20px;
        left: 10px;
        font-size: 12px;
    }
}
@media (max-width: 768px) {
    .coord-display {
        display: none;
    }
}

/* Radar Map */
#radar-map {
    width: 100%;
    height: 700px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

@media (max-width: 768px) {
    #radar-map {
        height: 400px;
    }
}