/* ============================= */
/* ZicchiniNews Global Styling   */
/* ============================= */

html, body {
    height: 100%;
    margin: 0;
}

body {
    background-color: #f8f9fb;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.btn-primary{
    background-color: #000000;
    border-color: #000000;
    color: #ffffff !important;
    border-radius: 4px;
}


.pricing-card {
    transition: all 0.25s ease;
    border-radius: 1rem;
    position: relative;
}

    .pricing-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }

    .pricing-card .badge {
        font-size: 0.75rem;
        border-radius: 999px;
    }

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* ============================= */
/* NAVBAR & HEADER               */
/* ============================= */

.news-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    width: 100%;
    z-index: 1000;
}

.news-navbar {
    min-height: 70px; 
    height: auto; 
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.news-navbar-container {
    display: flex;
    /* flex-wrap: nowrap; */
    /* margin-left:10px; */
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.news-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #111 !important;
    text-decoration: none;
}

.news-brand .news-brand-icon img {
    height: 3em;
    width: auto;
    display: block;
}

.news-brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}

.news-nav-wrapper {
    flex: 1;
    display: flex;
    justify-content: center; 
    /* overflow-x: auto;  */
    min-width: 0;
    /* scrollbar-width: none;  */
}

.news-nav-wrapper::-webkit-scrollbar {
    display: none;
}

.news-nav-links {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-nav-links .nav-link {
    color: #111 !important;
    font-weight: 500;
    padding: 8px 15px !important;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.news-nav-links .nav-link:hover {
    color: #777 !important;
    transform: translateY(-1px);
}

.news-nav-links .nav-link.active {
    color: #000 !important;
    font-weight: 800;
}

/* Header Right (Weather & Login) */
.news-header-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.login-header-box {
    display: flex;
    align-items: center;
    padding-left: 14px;
    border-left: 1px solid #d9d9d9;
}

.login-header-box .navbar-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.login-header-box .nav-link {
    color: #111 !important;
    font-weight: 500;
}

#login.btn-dark {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 6px 12px;
}

/* Desktop Only (992px and up) */
@media (min-width: 992px) {
    .news-navbar-container {
        flex-wrap: nowrap !important;
    }

    .news-nav-links {
        flex-wrap: nowrap;
    }

    .news-nav-wrapper {
        flex: 1 1 auto;
        overflow-x: auto;
        /* Hide scrollbar but keep functionality */
        scrollbar-width: none; 
    }
    .news-nav-wrapper::-webkit-scrollbar { display: none; }
}

/* Mobile Only (Below 992px) */
@media (max-width: 991.98px) {
    .news-navbar-container {
        flex-wrap: wrap !important; /* Allow the menu to drop below the brand */
    }

    .news-nav-links {
        flex-direction: column; /* Stack categories vertically */
        flex-wrap: wrap; 
    }

    .news-nav-wrapper {
        width: 100%;
        min-width: 0;
        overflow-x: auto; 
    scrollbar-width: none;
    }

    /* Reset the border-left from your previous login box on mobile */
    .login-header-box {
        border-left: none;
        padding-left: 0;
    }

    .news-header-right {
        display: none;
    }
}

/* ============================= */
/* MAIN CONTENT & FOOTER         */
/* ============================= */

.news-main {
    flex: 1 0 auto;
    padding: 20px 0;
}

.news-footer {
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 1.5rem 0;
    color: #666;
    flex-shrink: 0;
}

.footer-link {
    color: #666;
    text-decoration: none;
}

/* ============================= */
/* MOBILE RESPONSIVENESS         */
/* ============================= */

@media (max-width: 991.98px) {
    .news-navbar-container {
        flex-wrap: wrap;
    }

    .news-nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 1rem 0;
    }

    .news-header-right {
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #eee;
        justify-content: space-between;
    }

    .login-header-box {
        border-left: none;
        padding-left: 0;
    }


    /*  Mobile  */
@media (max-width: 991.98px) {
    .news-header-right {
        display: flex; 
        margin-left: auto;
    }
    
    /* mobile view: hide weather keep only login: */
    .weather-widget-class { 
        display: none; 
    }
}
}

/* ============================= */
/* DROPDOWN MENU                */
/* ============================= */

.dropdown-menu .dropdown-item:active, 
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active {
    background-color: #f4f4f7 !important; 
    color: #000 !important;
    outline: none !important;
    box-shadow: none !important;
}

.dropdown-item {
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-header-custom {
    padding: 1rem 1.25rem !important;
    max-width: 280px; /* Give it a bit more breathing room */
}

/* ============================= */
/* LOGIN PILLS                */
/* ============================= */

.guest-trigger {
    padding: 8px 12px;
    border-radius: 50px;
    transition: background 0.2s ease-in-out;
    text-decoration: none;
}

.guest-trigger:hover {
    background-color: #f0f0f0; 
    color: #000 !important;
}

.guest-avatar {
    background-color: #e9ecef; 
    color: #6c757d; 
    border: 1px solid #dee2e6;
}

.avatar-circle i {
    font-size: 1.1rem;
    display: flex;
}

.dropdown-header-custom {
    padding: 1rem 1.25rem; 
}

.user-email {
    display: block;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
    color: #777;
    font-size: 0.85rem;
}
/* ============================= */
/* LOG OUT PILLS                */
/* ============================= */

#logoutForm button.dropdown-item:active, 
#logoutForm button.dropdown-item:focus {
    background-color: #fff5f5 !important; 
    color: #dc3545 !important; 
    outline: none !important;
    box-shadow: none !important; 
}

#logoutForm button.dropdown-item:hover {
    background-color: #fff5f5;
    color: #c5303f !important;
}

.dropdown-menu-modern {
    padding: 0.5rem;
    border: 1px solid rgba(0,0,0,.08);
}

/* ============================= */
/* CATEGORY PILLS                */
/* ============================= */

.categories-section {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.category-pill {
    border: none;
    background: #eaeaea;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}

.category-pill.active {
    background: #000;
    color: #fff;
}


.featured-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    background: #efefef;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 35px;
    align-items: center;
}

.featured-image {
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff4d57;
    color: white;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
}

.featured-content h1 {
    font-size: 40px;
    line-height: 1.2;
    margin: 16px 0;
}

.featured-content p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

.news-tag {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
}

.news-tag.light {
    background: #ececec;
    color: #111;
}

.news-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

.chart-card {
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    height: 250px !important;
    width: 100%;
    position: relative;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.chart-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    height: 300px;
}

.current-weather {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

@media (max-width: 1000px) {
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.weather-temp {
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0;
}

.weather-details {
    display: flex;
    gap: 20px;
    color: #555;
}

.latest-news-section h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-body {
    padding: 15px;
}

.news-card h3 {
    font-size: 18px;
    margin: 10px 0;
}

.news-footer {
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 1rem 0;
    color: #666;
}

@media (max-width: 992px) {
    .featured-section {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .featured-content h1 {
        font-size: 30px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .featured-content h1 {
        font-size: 24px;
    }

    .featured-content p {
        font-size: 16px;
    }

    .news-header-right {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100%;
        margin-top: 1rem;
        padding: 10px 0;
        border-top: 1px solid #eee;
    }

    .login-header-box {
        margin-left: auto;
        padding-left: 0;
        border-left: none;
    }

    .news-header-right .navbar-nav {
        flex-direction: row !important;
    }
}


/* ============================= */
/* Identity & Management Pages   */
/* ============================= */

.settings-nav-container {
    display: flex;
    margin-bottom: 2rem;
    overflow-x: auto; /* Allows scrolling on very small screens */
    padding-bottom: 5px;
}

.settings-nav-group-horizontal {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    gap: 4px;
}

.nav-pill-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: #555 !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap; /* Keeps text on one line */
}

.nav-pill-item i {
    margin-right: 8px;
    font-size: 1.1rem;
    color: #888;
}

.nav-pill-item:hover {
    background-color: #f4f4f4;
    color: #000 !important;
}

.nav-pill-item.active {
    background-color: #000 !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.nav-pill-item.active i {
    color: #fff;
}

.settings-nav-container::-webkit-scrollbar {
    display: none;
}
.settings-nav-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Danger Zone */
.danger-zone {
    background-color: #fff5f5;
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 1rem;
}

.danger-zone .btn-outline-danger:hover {
    background-color: #dc3545 !important;
    color: white !important;
}

.card-user-management {
    background-color: #fff;
}

body {
    background-color: #f8f9fb;
}

.dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
}

@media (max-width: 991px) {
    .news-nav-links {
        gap: 0.5rem;
    }
}