/* Custom styles for Gerry the Smoke website */

/* General styles */
body {
    background-color: #121212;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e6e6e6;
}

/* Navbar customization */
.navbar {
    background-color: #000000 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    padding: 0;
    min-height: 60px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.navbar-brand h1 {
    color: #ff0000;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-bottom: 3px;
}

.navbar-brand h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.navbar-nav {
    padding: 0;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
}

/* Card customization */
.card {
    border: 1px solid #262626;
    box-shadow: 0 2px 4px rgba(0,0,0,.2);
    margin-bottom: 1.5rem;
    background-color: #1e1e1e;
    transition: box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 6px 14px rgba(0,0,0,.35);
}

.card-header {
    background-color: #151515;
    border-bottom: 1px solid #2a2a2a;
    padding: 1rem;
}

.card-header h5 {
    margin: 0;
    color: #f0f0f0;
    font-weight: 600;
}

.card-body {
    padding: 1rem;
}

/* Video container */
.ratio-16x9 {
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

video, iframe {
    border-radius: 8px;
}

/* Sidebar navigation */
.list-group-item {
    border: none;
    padding: 0.75rem 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    background-color: #1a1a1a;
    color: #dcdcdc;
    border-bottom: 1px solid #454545;
}

.list-group-item:hover {
    background-color: #222222;
    color: #ffffff;
}

/* Ensure actionable list items (links) keep light text on hover/focus */
.list-group-item-action:hover,
.list-group-item-action:focus {
    color: #ffffff;
}

.list-group-item.active {
    background-color: #bb2d3b; /* darker red for contrast on dark */
    border-color: #bb2d3b;
    color: #fff;
}

/* Thumbnail images */
.list-group-item img {
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.list-group-item h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.list-group-item small {
    color: #9aa0a6;
}

/* Content styling */
.card-title {
    color: #f2f2f2;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-subtitle {
    color: #c2c2c2;
    font-weight: 500;
    margin-bottom: 1rem;
}

.card-text {
    color: #d5d5d5;
    line-height: 1.6;
}

.card-desc {
    font-size: 0.82rem;
    line-height: 1.1;
    margin-bottom: 0;
}

/* Footer */
footer {
    margin-top: 3rem;
    background-color: #1a1a1a !important;
    padding: 2rem 0;
}

footer a {
    text-decoration: none;
    color: rgba(255,255,255,.85);
    transition: color 0.2s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand h1 {
        font-size: 1.5rem;
    }
    
    .navbar-brand img {
        max-height: 40px;
    }
    
    .card {
        margin-bottom: 1rem;
    }

    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .card-body {
        padding: 0.5rem;
    }
}

/* Custom animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional utility classes */
.text-muted {
    color: #a1a1a1 !important;
}

.bg-light {
    background-color: #1a1a1a !important;
}

/* Fix for video aspect ratio */
.ratio {
    position: relative;
    width: 100%;
}

.ratio::before {
    content: "";
    display: block;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.ratio > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Categories sidebar */
.categories-sidebar {
    position: sticky;
    top: 1rem;
}

.categories-header {
    background: #151515;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a2a2a;
    color: #e6e6e6;
}

.categories-header::after {
    content: '';
    display: none;
    width: 0.5em;
    height: 0.5em;
    margin-left: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.categories-list {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    background: #1a1a1a;
}

.categories-list .list-group-item {
    padding: 0.5rem 1rem;
    border-left: none;
    border-right: none;
}

.categories-list .list-group-item:first-child {
    border-top: none;
}

.categories-list .list-group-item.active {
    background-color: #c82333;
    border-color: #c82333;
    color: white;
}

/* Mobile Accordion */
@media (max-width: 991.98px) {
    .categories-sidebar {
        position: static;
    }
    
    .categories-list {
        max-height: none;
    }
    
    .categories-list.collapse:not(.show) {
        display: none;
    }
    
    .categories-list.collapse.show {
        display: block;
    }
    
    .categories-header {
        background: #151515;
        border-radius: 0.25rem 0.25rem 0 0;
    }
    
    .categories-header::after {
        display: inline-block;
    }

    .categories-header[aria-expanded="false"]::after {
        transform: rotate(-45deg);
    }
    
    .categories-list {
        border: 1px solid #2a2a2a;
        border-top: none;
        border-radius: 0 0 0.25rem 0.25rem;
    }
}

/* Custom Scrollbar */
.categories-list::-webkit-scrollbar {
    width: 6px;
}

.categories-list::-webkit-scrollbar-track {
    background: #202020;
}

.categories-list::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.categories-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.section-label {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 0.2rem;
    font-weight: 400;
}

.clip-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.section-title {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3rem;
    margin-bottom: 1rem;
}

.header-subtitle {
    font-size: 1rem;
    color: #f1f1f1;
    font-weight: 400;
    margin-top: -0.2rem;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.18);
    opacity: 0.85;
}

/* Share buttons on dark theme */
.btn-outline-light {
    --bs-btn-color: #f3f3f3;
    --bs-btn-border-color: #4a4a4a;
    --bs-btn-hover-bg: #2a2a2a;
    --bs-btn-hover-border-color: #5a5a5a;
    --bs-btn-active-bg: #333333;
    --bs-btn-active-border-color: #6a6a6a;
}

/* Override Bootstrap's default hover to keep light text */
.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active,
.btn-outline-light.active,
.show > .btn-outline-light.dropdown-toggle {
    color: #ffffff !important;
    background-color: #2a2a2a !important;
    border-color: #5a5a5a !important;
}

/* Share actions layout */
.share-actions .btn {
    min-width: 120px;
}

@media (max-width: 700px) {
    .share-actions {
        gap: 0.5rem;
    }
    .share-actions .section-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    .share-actions .btn {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 0;
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
    }

    
}

@media (max-width: 768px) {
    .header-title {
        font-size: 1rem;
    }
    .heter-div {
        text-align: right;
       padding-right: 1rem;
    }
}

@keyframes subtitle-glow {
    from {
        text-shadow: 0 0 8px #ffbcbc, 0 0 16px #ff3c3c;
    }
    to {
        text-shadow: 0 0 16px #fff0f0, 0 0 32px #ff3c3c;
    }
} 

.header-title {
    color: #ff0000;
    text-decoration: none;
}



.header-title:hover {
    color: #ffffff;
    text-decoration: none;
}

.more {
    color: #ff8080;
    text-decoration: underline;
}

.more:hover {
    color: #ffffff;
}

.pl-3 {
    padding-left: 1rem;
}

.pr-3 {
    padding-right: 1rem;
}

.pt-3 {
    padding-top: 1rem;
}

/* ===== New header layout (brand row + nav row) ===== */
.site-header {
    background-color: #000000!important;
}

.site-header .brand-block {
    gap: 0.75rem;
}

.site-header .brand-logo img {
    height: 84px;
    width: auto;
}

.site-header .site-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: none;
    margin: 0;
}

.site-header .site-subtitle {
    font-size: 1rem;
    color: #e8e8e8;
    opacity: 0.9;
    letter-spacing: 0.5px;
    margin-top: 0.15rem;
}

.site-header .main-nav .nav-link {
    color: rgba(255,255,255,0.9);
    padding: 0.6rem 1rem;
    font-weight: 500;
}

.site-header .main-nav .nav-link:hover,
.site-header .main-nav .nav-link.active {
    color: #ffffff;
}

/* Desktop tweaks */
@media (min-width: 992px) {
    .site-header .brand-block {
        padding: 0;
    }
    .site-header .brand-logo img {
        height: 100px;
    }
    .site-header .site-title {
        font-size: 2.25rem;
    }
}

/* Mobile layout: center stack, smaller logo */
@media (max-width: 991.98px) {
    .site-header .brand-block {
        justify-content: center !important;
        text-align: center;
    }
    .site-header .brand-logo img {
        height: 80px;
    }
    .site-header .brand-text {
        margin-left: 0 !important;
    }
    .site-header .site-title {
        font-size: 1.5rem;
    }
    .site-header .site-subtitle {
        font-size: 0.95rem;
    }
    .site-header .main-nav {
        justify-content: center !important;
    }
}