/* Main Stylesheet for BRITAIN NOW */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar */
.top-bar {
    background: #1a237e;
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.date-time {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-time i {
    color: #00bcd4;
}

.weather {
    color: #ccc;
}

.top-bar-links {
    display: flex;
    gap: 20px;
}

.top-bar-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar-links a:hover {
    color: white;
}

.dark-mode-toggle {
    background: transparent;
    border: 1px solid #00bcd4;
    color: #00bcd4;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.dark-mode-toggle:hover {
    background: #00bcd4;
    color: white;
}

/* Main Header */
.main-header {
    padding: 20px 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-main {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: #1a237e;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.logo-highlight {
    color: #00bcd4;
}

.tagline {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.ad-placeholder {
    background: #f5f5f5;
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    color: #999;
    border-radius: 4px;
}

.search-form {
    display: flex;
    position: relative;
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #1a237e;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-form input:focus {
    outline: none;
    border-color: #00bcd4;
    box-shadow: 0 0 0 3px rgba(0,188,212,0.1);
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: #1a237e;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #00bcd4;
}

/* Navigation */
.main-nav {
    background: #0d145a;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: rgba(255,255,255,0.1);
    border-bottom-color: #00bcd4;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #1a237e;
    padding-left: 25px;
}

.dropdown-menu a i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login, .btn-register {
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-login {
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-login:hover {
    background: rgba(255,255,255,0.1);
}

.btn-register {
    background: #00bcd4;
    color: white;
}

.btn-register:hover {
    background: #0097a7;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.user-btn:hover {
    background: rgba(255,255,255,0.2);
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
}

.user-dropdown:hover .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.user-menu a:hover {
    background: #f5f5f5;
    color: #1a237e;
    padding-left: 25px;
}

.divider {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}

/* Breaking News Ticker */
.breaking-news-ticker {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    padding: 12px 0;
}

.breaking-news-ticker .container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breaking-label {
    background: rgba(255,255,255,0.2);
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    height: 24px;
    position: relative;
}

.ticker-items {
    position: absolute;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ticker-item {
    display: inline-block;
    padding: 0 20px;
}

.ticker-item a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.ticker-item a:hover {
    opacity: 0.8;
}

.ticker-time {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 10px;
    font-size: 0.8rem;
}

.ticker-control {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.ticker-control:hover {
    background: rgba(255,255,255,0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-main {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .ad-placeholder {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .main-nav .container {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu > li > a {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.1);
        display: none;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .user-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .breaking-news-ticker .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .breaking-label {
        width: 100%;
        justify-content: center;
    }
}

/* Dark Mode */
.dark-mode {
    background: #121212;
    color: #e0e0e0;
}

.dark-mode .main-header {
    background: #1e1e1e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.dark-mode .logo a {
    color: #e0e0e0;
}

.dark-mode .tagline {
    color: #aaa;
}

.dark-mode .ad-placeholder {
    background: #2a2a2a;
    border-color: #444;
    color: #888;
}

.dark-mode .search-form input {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

.dark-mode .dropdown-menu {
    background: #2a2a2a;
    border: 1px solid #444;
}

.dark-mode .dropdown-menu a {
    color: #e0e0e0;
    border-bottom-color: #444;
}

.dark-mode .dropdown-menu a:hover {
    background: #3a3a3a;
}

.dark-mode .user-menu {
    background: #2a2a2a;
    border: 1px solid #444;
}

.dark-mode .user-menu a {
    color: #e0e0e0;
    border-bottom-color: #444;
}

.dark-mode .user-menu a:hover {
    background: #3a3a3a;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00bcd4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: #1a237e;
    color: white;
}

.btn-primary:hover {
    background: #283593;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26,35,126,0.3);
}

.btn-secondary {
    background: #00bcd4;
    color: white;
}

.btn-secondary:hover {
    background: #0097a7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,188,212,0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #1a237e;
    color: #1a237e;
}

.btn-outline:hover {
    background: #1a237e;
    color: white;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #00bcd4;
    box-shadow: 0 0 0 3px rgba(0,188,212,0.1);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.form-check-input {
    width: 18px;
    height: 18px;
}

.form-check-label {
    cursor: pointer;
}

/* Responsive Images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-rounded {
    border-radius: 8px;
}

.img-circle {
    border-radius: 50%;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1a237e;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1001;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}