/* BBC News Philippines Styles */
:root {
    --bbc-red: #BB1919;
    --bbc-dark-red: #990000;
    --bbc-black: #121212;
    --bbc-dark-gray: #333333;
    --bbc-gray: #666666;
    --bbc-light-gray: #F2F2F2;
    --bbc-white: #FFFFFF;
    --bbc-blue: #1E5B8C;
    --bbc-yellow: #FFD700;
    --bbc-green: #007A5E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--bbc-black);
    background-color: var(--bbc-white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Navigation */
.top-nav {
    background-color: var(--bbc-black);
    color: var(--bbc-white);
    padding: 12px 0;
    border-bottom: 3px solid var(--bbc-red);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.bbc-logo {
    font-size: 24px;
    font-weight: 700;
}

.bbc-text {
    background-color: var(--bbc-white);
    color: var(--bbc-red);
    padding: 4px 8px;
    border-radius: 2px;
    font-family: 'Source Serif Pro', serif;
}

.sign-in {
    color: var(--bbc-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.nav-center {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: var(--bbc-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--bbc-red);
}

.nav-link.active {
    color: var(--bbc-red);
    font-weight: 700;
}

.nav-right {
    display: flex;
    gap: 16px;
}

.search-btn, .settings-btn {
    background: none;
    border: none;
    color: var(--bbc-white);
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
}

/* Breaking News Banner */
.breaking-banner {
    background-color: var(--bbc-red);
    color: var(--bbc-white);
    padding: 10px 0;
}

.breaking-ticker {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breaking-label {
    background-color: var(--bbc-white);
    color: var(--bbc-red);
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breaking-text {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
}

/* Main Content Layout */
.main-content {
    padding: 30px 0 60px;
}

.main-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Featured Article */
.featured-article {
    border-bottom: 1px solid var(--bbc-light-gray);
    padding-bottom: 30px;
}

.article-header {
    margin-bottom: 20px;
}

.category-label {
    display: inline-block;
    background-color: var(--bbc-red);
    color: var(--bbc-white);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--bbc-gray);
    font-size: 14px;
}

.article-title {
    font-family: 'Source Serif Pro', serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--bbc-black);
}

.article-subtitle {
    font-size: 20px;
    color: var(--bbc-dark-gray);
    margin-bottom: 30px;
    line-height: 1.4;
}

.article-image-container {
    margin: 30px 0;
}

.featured-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
}

.image-caption {
    margin-top: 10px;
    color: var(--bbc-gray);
    font-size: 14px;
    border-left: 3px solid var(--bbc-red);
    padding-left: 10px;
}

/* Article Body */
.article-body {
    margin-top: 40px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bbc-light-gray);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 700;
    font-size: 16px;
}

.author-role {
    color: var(--bbc-gray);
    font-size: 14px;
}

.content-wrapper {
    font-size: 18px;
    line-height: 1.8;
}

.lead-paragraph {
    font-size: 22px;
    margin-bottom: 30px;
    color: var(--bbc-dark-gray);
}

.key-facts {
    background-color: var(--bbc-light-gray);
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid var(--bbc-red);
}

.key-facts h3 {
    color: var(--bbc-red);
    margin-bottom: 15px;
    font-size: 20px;
}

.key-facts ul {
    list-style: none;
    padding-left: 0;
}

.key-facts li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.key-facts li:before {
    content: "•";
    color: var(--bbc-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.quote-box {
    background-color: var(--bbc-light-gray);
    padding: 30px;
    margin: 40px 0;
    border-radius: 4px;
    position: relative;
}

.quote-icon {
    color: var(--bbc-red);
    font-size: 30px;
    margin-bottom: 15px;
}

.quote-text {
    font-size: 22px;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--bbc-dark-gray);
}

.quote-author {
    font-weight: 600;
    color: var(--bbc-gray);
}

.interactive-box {
    background-color: #F8F9FA;
    border: 2px solid var(--bbc-blue);
    padding: 25px;
    margin: 30px 0;
    border-radius: 6px;
}

.interactive-box h3 {
    color: var(--bbc-blue);
    margin-bottom: 15px;
    font-size: 20px;
}

.interactive-box ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.interactive-box li {
    margin-bottom: 8px;
}

.safety-btn {
    background-color: var(--bbc-blue);
    color: var(--bbc-white);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    transition: background-color 0.2s;
}

.safety-btn:hover {
    background-color: #154870;
}

/* Article Footer */
.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--bbc-light-gray);
}

.tags {
    margin-bottom: 25px;
}

.tag-label {
    font-weight: 600;
    margin-right: 10px;
    color: var(--bbc-gray);
}

.tag {
    display: inline-block;
    background-color: var(--bbc-light-gray);
    color: var(--bbc-black);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: background-color 0.2s;
}

.tag:hover {
    background-color: #E5E5E5;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.share-btn.facebook {
    background-color: #1877F2;
    color: white;
}

.share-btn.twitter {
    background-color: #1DA1F2;
    color: white;
}

.share-btn.whatsapp {
    background-color: #25D366;
    color: white;
}

.share-btn.copy {
    background-color: var(--bbc-gray);
    color: white;
}

.share-btn:hover {
    opacity: 0.9;
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background-color: var(--bbc-white);
    border: 1px solid var(--bbc-light-gray);
    border-radius: 6px;
    overflow: hidden;
}

.widget-title {
    background-color: var(--bbc-light-gray);
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--bbc-black);
    margin: 0;
    border-bottom: 1px solid #E5E5E5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-title {
    background-color: #FFF3CD;
    color: #856404;
    border-color: #FFEEBA;
}

/* Live Updates Widget */
.updates-container {
    padding: 20px;
}

.update-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--bbc-light-gray);
}

.update-item:last-child {
    border-bottom: none;
}

.update-time {
    color: var(--bbc-red);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.update-text {
    font-size: 15px;
    line-height: 1.4;
}

.watch-live-btn {
    width: 100%;
    background-color: var(--bbc-red);
    color: var(--bbc-white);
    border: none;
    padding: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.watch-live-btn:hover {
    background-color: var(--bbc-dark-red);
}

/* Related Stories */
.related-stories {
    padding: 0;
}

.story-item {
    padding: 20px;
    border-bottom: 1px solid var(--bbc-light-gray);
}

.story-item:last-child {
    border-bottom: none;
}

.story-category {
    color: var(--bbc-red);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.story-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.story-time {
    color: var(--bbc-gray);
    font-size: 13px;
}

/* Public Alert Widget */
.alert-content {
    padding: 20px;
}

.hotline {
    margin-bottom: 10px;
    font-size: 15px;
}

.hotline strong {
    color: var(--bbc-red);
    font-size: 18px;
}

.emergency-btn {
    width: 100%;
    background-color: var(--bbc-red);
    color: var(--bbc-white);
    border: none;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    transition: background-color 0.2s;
}

.emergency-btn:hover {
    background-color: var(--bbc-dark-red);
}

/* Newsletter Widget */
.newsletter {
    padding: 20px;
}

.newsletter p {
    margin-bottom: 15px;
    color: var(--bbc-gray);
}

.newsletter-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 15px;
}

.newsletter-btn {
    width: 100%;
    background-color: var(--bbc-green);
    color: var(--bbc-white);
    border: none;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.newsletter-btn:hover {
    background-color: #005B46;
}

.privacy-notice {
    margin-top: 15px;
    color: var(--bbc-gray);
    font-size: 12px;
}

.privacy-notice a {
    color: var(--bbc-blue);
    text-decoration: none;
}

/* Most Read Widget */
.most-read {
    padding: 0;
}

.read-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid var(--bbc-light-gray);
}

.read-rank {
    background-color: var(--bbc-light-gray);
    color: var(--bbc-black);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
}

.read-content {
    flex: 1;
}

.read-category {
    color: var(--bbc-gray);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.read-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* BBC Footer */
.bbc-footer {
    background-color: var(--bbc-black);
    color: var(--bbc-white);
    padding: 40px 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--bbc-gray);
}

.bbc-logo-large {
    font-family: 'Source Serif Pro', serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--bbc-white);
}

.footer-nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--bbc-white);
    text-decoration: none;
    font-size: 14px;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--bbc-gray);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--bbc-gray);
    text-decoration: underline;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Camera Section */
.camera-section {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.camera-modal {
    background-color: var(--bbc-white);
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.camera-header {
    background-color: var(--bbc-red);
    color: var(--bbc-white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.camera-header h3 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-camera {
    background: none;
    border: none;
    color: var(--bbc-white);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.camera-body {
    padding: 30px;
}

.camera-info {
    margin-bottom: 20px;
    color: var(--bbc-dark-gray);
    line-height: 1.6;
}

.camera-preview {
    width: 100%;
    height: 300px;
    background-color: var(--bbc-black);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.camera-preview video,
.camera-preview canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: var(--bbc-red);
    color: var(--bbc-white);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--bbc-dark-red);
}

.btn-secondary {
    background-color: var(--bbc-gray);
    color: var(--bbc-white);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: var(--bbc-dark-gray);
}

.camera-note {
    background-color: var(--bbc-light-gray);
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--bbc-gray);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.loading-content {
    background-color: var(--bbc-white);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.spinner {
    border: 4px solid var(--bbc-light-gray);
    border-top: 4px solid var(--bbc-red);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    color: var(--bbc-dark-gray);
    font-weight: 600;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--bbc-green);
    color: var(--bbc-white);
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.notification-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-content i {
    font-size: 20px;
}

.toast-message {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-content .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .article-subtitle {
        font-size: 18px;
    }
    
    .featured-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .top-nav .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-center {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-right {
        position: absolute;
        right: 20px;
        top: 15px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-subtitle {
        font-size: 16px;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .content-wrapper {
        font-size: 16px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}