/**
 * MAYDAY.WORLD - Custom CSS Overrides
 * Ergänzende Styles für das bestehende Template
 */

/* ============================================
   GENERAL IMPROVEMENTS
   ============================================ */

body {
    background: #f0f0f0;
    min-height: 100vh;
}

.main-container {
    min-height: calc(100vh - 200px);
    padding-top: 30px !important;
}

/* Breiterer Container */
.container {
    max-width: 1400px !important;
    width: 95% !important;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1400px !important;
    }
}

/* ============================================
   NAVBAR IMPROVEMENTS
   ============================================ */

.navbar-site.navbar {
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.9;
}

/* ============================================
   CONTENT BOX IMPROVEMENTS
   ============================================ */

.content-box {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.inner-box {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
}

/* ============================================
   CATEGORY CARDS (SEASONS)
   ============================================ */

.f-category {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.f-category:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.f-category img {
    border-radius: 4px;
    height: auto;
    max-height: 120px;
    object-fit: cover;
}

.f-category h6 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 12px 0 5px;
}

.f-category .count {
    font-size: 12px;
    color: #888;
    display: block;
}

.f-category a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   RIBBON BADGES
   ============================================ */

.ribbon {
    position: absolute;
    right: -5px;
    top: -5px;
    z-index: 10;
    overflow: hidden;
    width: 85px;
    height: 85px;
    text-align: right;
}

.ribbon span {
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    line-height: 22px;
    transform: rotate(45deg);
    width: 110px;
    display: block;
    position: absolute;
    top: 22px;
    right: -24px;
}

.ribbon.red span {
    background: linear-gradient(135deg, #c40808 0%, #8f0808 100%);
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 0.5);
}

/* ============================================
   SIDEBAR IMPROVEMENTS
   ============================================ */

.page-sidebar .inner-box {
    padding: 0;
    overflow: hidden;
}

.page-sidebar .block-title {
    background: linear-gradient(135deg, #c40808 0%, #8f0808 100%);
    color: #fff;
    padding: 12px 15px;
    margin: 0;
}

.page-sidebar .block-title h5 {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.page-sidebar .block-content {
    padding: 0;
}

.page-sidebar .categories-list ul {
    margin: 0;
    padding: 0;
}

.page-sidebar .categories-list ul li {
    border-bottom: 1px solid #eee;
}

.page-sidebar .categories-list ul li:last-child {
    border-bottom: none;
}

.page-sidebar .categories-list ul li a {
    display: block;
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.page-sidebar .categories-list ul li a:hover {
    background: #f8f8f8;
    color: #c40808;
    padding-left: 20px;
}

.page-sidebar .categories-list ul li.active a {
    background: #fff5f5;
    color: #c40808;
    border-left: 3px solid #c40808;
}

.page-sidebar .categories-list ul li .count {
    float: right;
    color: #999;
    font-size: 11px;
}

/* ============================================
   TITLE IMPROVEMENTS
   ============================================ */

.title-2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #c40808;
}

.title-2 i {
    color: #c40808;
    margin-right: 8px;
}

.box-title h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.box-title h2 span {
    font-weight: 400;
    color: #666;
}

.box-title h2 i {
    color: #c40808;
    margin-right: 8px;
}

/* ============================================
   BUTTON IMPROVEMENTS
   ============================================ */

.btn-primary {
    background: linear-gradient(135deg, #c40808 0%, #a00606 100%);
    border: none;
    border-radius: 4px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d40909 0%, #b00707 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 8, 8, 0.3);
}

.btn-secondary {
    background: #6c757d;
    border: none;
    border-radius: 4px;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================
   CARD IMPROVEMENTS
   ============================================ */

.card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.card-body {
    padding: 15px;
}

/* ============================================
   TABLE IMPROVEMENTS
   ============================================ */

.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

.table td {
    font-size: 14px;
    vertical-align: middle;
}

.table a {
    color: #c40808;
    text-decoration: none;
}

.table a:hover {
    text-decoration: underline;
}

/* ============================================
   BREADCRUMB IMPROVEMENTS
   ============================================ */

.breadcrumb {
    background: #f8f8f8;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 13px;
}

.breadcrumb a {
    color: #c40808;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #666;
}

/* ============================================
   ALERT IMPROVEMENTS
   ============================================ */

.alert {
    border-radius: 4px;
    padding: 15px 20px;
}

.alert-info {
    background: #e8f4fd;
    border: 1px solid #b8daff;
    color: #004085;
}

.alert i {
    margin-right: 8px;
}

/* ============================================
   PANEL IMPROVEMENTS
   ============================================ */

.panel {
    border-radius: 6px;
    overflow: hidden;
}

.panel-heading {
    font-weight: 600;
}

.panel-heading h4 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.panel-body {
    line-height: 1.6;
}

/* ============================================
   FOOTER IMPROVEMENTS
   ============================================ */

.main-footer,
footer.main-footer,
.main-footer .footer-content {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    color: #ccc !important;
}

.main-footer * {
    background-color: transparent !important;
}

.main-footer h5 {
    color: #fff !important;
}

.main-footer p,
.main-footer small {
    color: #bbb !important;
}

.main-footer a {
    color: #ccc !important;
}

.main-footer a:hover {
    color: #ff4444 !important;
}

.main-footer hr {
    border-color: #444 !important;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 991px) {
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }
}

@media (max-width: 767px) {
    /* Hide sidebar (season selection) on mobile */
    .page-sidebar {
        display: none !important;
    }
    
    /* Make main content full width when sidebar is hidden */
    .page-content {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* General */
    .f-category {
        margin-bottom: 15px;
    }
    
    .f-category img {
        max-height: 80px;
    }
    
    .title-2 {
        font-size: 18px;
    }
    
    /* Header */
    .navbar-site .container {
        flex-wrap: wrap;
    }
    
    .navbar-identity a {
        font-size: 1.2em !important;
    }
    
    .navbar-identity img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .navbar-collapse {
        display: none !important;
    }
    
    /* Episode Navigation - Stack vertically */
    .episode-navigation {
        flex-direction: column !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .episode-navigation > div {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-bottom: 10px;
    }
    
    .episode-navigation > div:last-child {
        margin-bottom: 0;
    }
    
    /* Info Cards - Stack vertically */
    .row[style*="display: flex"] > div[style*="flex: 0 0 50%"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    /* Footer */
    .main-footer .row {
        text-align: center;
    }
    
    .main-footer .col-md-6,
    .main-footer .col-md-3 {
        margin-bottom: 20px;
    }
    
    .main-footer .col-md-6 > div {
        justify-content: center;
    }
    
    /* Tables */
    .table th {
        white-space: normal !important;
        width: auto !important;
    }
    
    /* Play button smaller on mobile */
    .play-button-overlay {
        width: 70px !important;
        height: 70px !important;
    }
    
    .play-button-overlay i {
        font-size: 28px !important;
    }
}

@media (max-width: 575px) {
    .content-box,
    .inner-box {
        padding: 15px;
    }
    
    .ribbon {
        width: 70px;
        height: 70px;
    }
    
    .ribbon span {
        font-size: 9px;
        line-height: 18px;
        width: 90px;
        top: 17px;
        right: -22px;
    }
    
    /* Smaller title */
    .title-2 {
        font-size: 16px;
        padding-bottom: 10px;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 12px;
        padding: 10px 12px !important;
    }
    
    /* Panel headings */
    .panel-heading {
        padding: 12px 15px !important;
    }
    
    .panel-heading h4 {
        font-size: 14px !important;
    }
    
    /* Table cells */
    .table th,
    .table td {
        padding: 10px 12px !important;
        font-size: 13px;
    }
    
    /* Footer */
    .main-footer {
        padding: 20px 0 !important;
    }
    
    .main-footer h5 {
        font-size: 13px !important;
    }
    
    .main-footer p,
    .main-footer a {
        font-size: 12px !important;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .navbar-identity span {
        font-size: 1em !important;
    }
    
    .title-2 {
        font-size: 14px;
    }
    
    .btn {
        padding: 8px 15px !important;
        font-size: 13px !important;
    }
}
