/* Custom Enhancements for Daily Gear Landing & Footer Pages */

/* ============================================
   Color Variables - Light Orange & Blue Theme
   ============================================ */
:root {
    --primary-color: #ffb74d;
    --primary-light: #ffd54f;
    --primary-dark: #ffa726;
    --secondary-color: #64b5f6;
    --secondary-light: #90caf9;
    --accent-color: #ffe0b2;
}

/* ============================================
   Navbar Enhancements - Floating Pill Style
   ============================================ */
.header-section {
    background: transparent !important;
    padding: 1rem 1rem;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-section nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.75rem 2rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-section nav > div {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .header-section {
        padding: 0.5rem 0.5rem;
    }

    .header-section nav {
        border-radius: 25px;
        padding: 0.5rem 1rem !important;
        margin: 0 0.5rem;
    }

    .header-section .logo img {
        width: 45px !important;
        height: 45px !important;
    }

    .header-section .btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem;
    }

    .hero-section {
        margin-top: -80px;
        padding-top: 120px !important;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }
}

/* Add padding to body to prevent navbar overlap */
body {
    padding-top: 100px;
    overflow-x: hidden;
    max-width: 100%;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

.container,
.container-fluid {
    overflow-x: hidden;
}

/* ============================================
   Hero Section Enhancements
   ============================================ */
.hero-section {
    background: #ffcc80;
    position: relative;
    overflow-x: hidden;
    margin-top: -100px;
    padding-top: 150px !important;
    width: 100%;
    max-width: 100vw;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: #333 !important;
    text-shadow: none;
}

.hero-section .lead {
    color: #555 !important;
    font-size: 1.25rem;
}

.hero-section .btn-primary {
    background: #ffffff;
    color: #ff9800;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
    color: #e65100;
}

/* ============================================
   Card Hover Effects
   ============================================ */
.card {
    transition: all 0.3s ease;
    border-radius: 12px !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-body {
    padding: 2rem !important;
}

/* ============================================
   Feature Cards
   ============================================ */
.features-section .card {
    border: 1px solid #e9ecef;
}

.features-section .card:hover {
    border-color: #ffb74d;
}

.features-section .rounded-circle {
    background: #ffb74d;
    border: none !important;
}

/* Alternate blue for some features */
.features-section .col-lg-3:nth-child(even) .rounded-circle {
    background: #64b5f6;
}

.features-section .rounded-circle img {
    filter: brightness(0) invert(1);
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.how-it-works-section .card {
    position: relative;
    overflow: hidden;
}

.how-it-works-section .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffb74d;
}

.how-it-works-section .col-lg-3:nth-child(even) .card::before {
    background: #64b5f6;
}

.how-it-works-section .rounded-circle {
    background: #ffb74d;
    border: none !important;
}

.how-it-works-section .col-lg-3:nth-child(even) .rounded-circle {
    background: #64b5f6;
}

/* Fix step number badges - centered */
.how-it-works-section .badge {
    background: #ffb74d !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.how-it-works-section .col-lg-3:nth-child(even) .badge {
    background: #64b5f6 !important;
}

/* ============================================
   FAQ Section
   ============================================ */
.accordion-item {
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    overflow: visible !important;
}

.accordion-button {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.accordion-button:not(.collapsed) {
    background: #ffb74d;
    color: #ffffff;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #ffb74d;
}

/* Fix accordion overflow and icon issues */
.accordion-button {
    overflow: visible !important;
    white-space: normal;
    word-wrap: break-word;
    position: relative;
    padding: 1.25rem 3rem 1.25rem 1.25rem !important;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.accordion-button i {
    margin-right: 0.75rem;
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* Fix FAQ section spacing */
.accordion-item {
    margin-bottom: 1.5rem !important;
}

.accordion-item:first-child {
    margin-top: 0 !important;
}

.accordion-header {
    margin-bottom: 0 !important;
    position: relative;
    z-index: 1;
}

.accordion-body {
    padding: 1.5rem 1.25rem !important;
}

/* ============================================
   About Page
   ============================================ */
.about-page {
    max-width: 900px;
    margin: 0 auto;
}

.about-page h1 {
    color: #667eea;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.about-page h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #64b5f6;
    border-radius: 2px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* ============================================
   Credits Page
   ============================================ */
.partner-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.partner-item {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.partner-item img {
    max-width: 120px;
    height: auto;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.partner-item:hover img {
    transform: scale(1.1);
}

.partner-item h4 {
    color: #333;
    font-weight: 600;
    margin-top: 1rem;
}

.partner-item p {
    color: #666;
    font-size: 0.95rem;
}

.partner-item a {
    text-decoration: none;
    color: inherit;
}

.section-header .cate {
    color: #ffb74d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.section-header .title {
    color: #333;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* ============================================
   FAQs Page
   ============================================ */
.faq-section {
    background: #f8f9fa;
}

.faq-menu {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

.faq-menu .nav-link {
    color: #555;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.faq-menu .nav-link:hover,
.faq-menu .nav-link.active {
    background: #64b5f6;
    color: #ffffff;
}

.faq--wrapper {
    margin-bottom: 3rem;
}

.faq--wrapper .main-title {
    color: #ffb74d;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #ffb74d;
}

.faq--item {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq--item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.faq-title {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-title .title {
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.faq-title .icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    flex-shrink: 0;
}

.faq-title .icon::before {
    display: none !important;
}

/* Hide default accordion icons to prevent double icons */
.accordion-button::after,
.accordion-button::before {
    display: none !important;
}

/* Ensure no extra icons on FAQ page */
.faq--item .bi,
.faq--item i:not(.bi) {
    display: none !important;
}

.faq-title i {
    display: none !important;
}

.faq-content {
    display: none;
    padding-top: 1rem;
    color: #666;
    line-height: 1.7;
}

.faq--item.active .faq-content {
    display: block;
}

/* ============================================
   Privacy Policy Page
   ============================================ */
.privacy-section {
    background: #f8f9fa;
}

.privacy-section .section-header .title {
    color: #ffb74d;
    font-weight: 700;
    text-align: center;
}

.privacy-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.privacy-item .title {
    color: #333;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ffb74d;
}

.privacy-item p {
    color: #666;
    line-height: 1.8;
}

.privacy-item .list-group-item {
    border: none;
    padding: 0.75rem 0;
    background: transparent;
}

/* ============================================
   Buttons
   ============================================ */
.btn-grd-danger {
    background: #ffb74d;
    border: none;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-grd-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 183, 77, 0.4);
    background: #64b5f6;
    color: #ffffff;
}

.btn-outline-primary {
    border: 2px solid #ffb74d;
    color: #ffb74d;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #ffb74d;
    border-color: #ffb74d;
    color: #ffffff;
}

/* ============================================
   Blog Article Styles
   ============================================ */
.blog-article {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.blog-article .lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #555;
    border-left: 4px solid #ffb74d;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    background: #fff9f0;
    padding: 1.5rem;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .blog-article .lead {
        font-size: 1.1rem;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
}

.blog-article h3 {
    margin-top: 3rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.blog-article ul {
    padding-left: 1.5rem;
}

.blog-article ul li {
    line-height: 1.8;
}

.blog-article ul li strong {
    color: #ff9800;
}

.blog-article .alert {
    border-left: 4px solid #ffb74d;
}

.blog-article img {
    border-radius: 12px;
}

.blog-article .card {
    transition: transform 0.3s ease;
}

.blog-article .card:hover {
    transform: translateY(-2px);
}

/* Remove blue text selection highlights */
::selection {
    background: #ffcc80;
    color: #333;
}

::-moz-selection {
    background: #ffcc80;
    color: #333;
}

/* ============================================
   Mobile Responsive Fixes
   ============================================ */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }

    .display-1,
    .display-2,
    .display-3,
    .display-4,
    .display-5 {
        font-size: calc(1.5rem + 1.5vw) !important;
    }

    .lead {
        font-size: 1rem !important;
    }

    .accordion-item {
        margin-bottom: 1rem !important;
    }

    .gap-3 {
        gap: 0.5rem !important;
    }

    .gap-4 {
        gap: 1rem !important;
    }

    .gap-5 {
        gap: 1.5rem !important;
    }

    section {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .features-section,
    .how-it-works-section,
    .faq-section {
        overflow-x: hidden;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .rounded-circle {
        max-width: 100%;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.padding-top {
    padding-top: 80px;
}

.padding-bottom {
    padding-bottom: 80px;
}

.sticky-menu {
    position: sticky;
    top: 20px;
}

/* ============================================
   Footer Styles
   ============================================ */
.footer {
    background: #343a40 !important;
    padding: 2rem 0 !important;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
    width: 100%;
    clear: both;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Ensure footer is fully visible on mobile */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0 !important;
        margin-top: 2rem;
    }

    .footer .row {
        margin: 0;
    }

    .footer .col-md-6 {
        padding: 0.75rem 0;
    }

    .footer-links {
        margin-top: 0.5rem;
    }

    .footer-links .btn {
        padding: 0.4rem 1rem !important;
        font-size: 0.875rem;
    }

    /* Ensure no content overlaps footer */
    main,
    section:last-of-type {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 991px) {
    body {
        padding-top: 80px;
    }

    .header-section nav {
        border-radius: 25px;
        padding: 0.5rem 1rem !important;
    }

    .hero-section {
        min-height: auto !important;
        padding: 80px 0 60px 0 !important;
        margin-top: -80px;
    }

    .padding-top {
        padding-top: 60px;
    }

    .padding-bottom {
        padding-bottom: 60px;
    }

    .sticky-menu {
        position: relative;
        top: 0;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2.5rem !important;
    }

    .about-content p {
        font-size: 1rem;
    }
}
