/*
Theme Name: SC420RADIO Show Theme
Theme URI: https://aggtown.org
Author: SC420RADIO Dev Team
Version: 4.2
Description: WordPress video player theme with show/episode system, floating slider modal
*/

/* ============================================================
   CUSTOM FONTS
============================================================ */
@font-face {
    font-family: 'Alfa Slab One';
    src: url('assets/fonts/Alfa_Slab_One/AlfaSlabOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Comforter';
    src: url('assets/fonts/Comforter-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   MENU STYLES
============================================================ */
#top-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.menu-button {
    color: white;
    font-size: 24px;
    font-family: 'Impact', sans-serif;
    padding: 20px 0px;
    cursor: pointer;
    text-align: center;
    user-select: none;
}

.menu-links {
    display: none;
    padding: 10px;
    text-align: center;
    transform-origin: top center;
    transition: all 0.3s ease;
}

.menu-links a {
    color: white;
    text-decoration: none;
    font-size: 1em;
    font-family: 'Impact', sans-serif;
    padding: 10px 15px;
    display: inline-block;
    transition: font-size 0.3s ease, color 0.3s ease;
}

.menu-links a:hover {
    color: #d86800;
}

#top-menu.menu-open {
    background-color: rgba(0, 0, 0, 0.9);
}

#top-menu.menu-open .menu-links {
    display: block;
    transform: scaleY(1);
}

#top-menu.menu-open .menu-links a {
    font-size: 1.2em;
}

#menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#menu-overlay.active {
    display: block;
}

/* ============================================================
   BASE BODY STYLES
============================================================ */
body {
    background-color: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
    background-attachment: fixed;
}

/* ============================================================
   SITE HEADER & TITLE ANIMATION
============================================================ */
.site-header {
    text-align: center;
    background: #000;
    padding: 0px 0;
}

#site-title-animation-container {
    position: relative;
    overflow: hidden;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-title {
    font-family: 'Alfa Slab One', cursive;
    font-size: 4.5rem;
    color: #fff;
    text-shadow: 5px 2px #d86800;
    margin: 0;
    position: relative;
    top: -200px;
    animation: dropBounceShake 3s ease-in-out forwards;
}

@keyframes dropBounceShake {
    0% {
        top: -200px;
        transform: rotate(0deg);
    }
    50% {
        top: 0;
        transform: rotate(0deg);
        animation-timing-function: cubic-bezier(0.28, 0.84, 0.42, 1);
    }
    65% {
        top: -20px;
        transform: rotate(-3deg);
    }
    80% {
        top: 0;
        transform: rotate(3deg);
    }
    90% {
        top: -5px;
        transform: rotate(-1deg);
    }
    100% {
        top: 0;
        transform: rotate(0deg);
    }
}

.radio {
    font-size: 5rem;
    font-family: 'Comforter', cursive;
    color: white;
    text-shadow: 2px 2px #d86800;
}

.site-top-image-stack img,
.site-bottom-image-stack img {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* ============================================================
   MAIN CONTENT AREA
============================================================ */
#sc420radio-main {
    max-width: none;
    margin: 5px auto;
    padding: 0 5px;
    box-sizing: border-box;
}

/* ============================================================
   NOW PLAYING SECTION
============================================================ */
#sc420radio-player-section {
    background-color: #000000;
    border: 1px solid #d86800;
    padding: 5px;
    margin-bottom: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

#now-playing {
    font-family: 'Comforter', cursive !important;
    font-size: 1.5rem;
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
    padding: 5px 0;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

#now-playing-label {
    display: inline-block;
    color: #d86800;
    animation: slideInLeft 1s ease-out forwards;
}

#now-playing-title {
    display: inline-block;
    color: #fff;
    animation: slideInRight 1s ease-out forwards;
    animation-delay: 0.2s;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================================
   VIDEO PLAYER
============================================================ */
#sc420-player {
    max-width: 100%;
    width: 100%;
    max-height: auto;
    background-color: #000;
    border: 1px solid #333;
    display: block;
    margin: 0 auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

body.video-playing {
    animation: keep-awake 30s infinite;
}

@keyframes keep-awake {
    0% { opacity: 1; }
    50% { opacity: 0.99999; }
    100% { opacity: 1; }
}

/* ============================================================
   VIDEO CONTROLS
============================================================ */
.video-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.video-controls button {
    background-color: #000000;
    color: #d86800;
    border: 1px solid #d86800;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.video-controls button:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
}

.video-controls button:active {
    transform: translateY(0);
}

#cast-btn {
    background-color: #FF5722;
    color: white;
}

#cast-btn:hover {
    background-color: #FF7043;
}

#cast-btn.casting {
    background-color: #4CAF50 !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.8);
    }
}

/* ============================================================
   NOW PLAYING THUMBNAIL
============================================================ */
.now-playing-images {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
    width: 100%;
    margin: 0 auto 15px auto;
}

.now-playing-thumbnail-wrapper {
    width: 100%;
    max-height: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
    border: 2px solid #d86800;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    background-color: #000;
    max-width: 100%;
    transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.now-playing-thumbnail-wrapper.is-playing {
    animation: glowing-pulse 1.5s infinite alternate;
}

@keyframes glowing-pulse {
    0% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
        border-color: #d86800;
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 223, 0, 0.8), 0 0 35px rgba(255, 223, 0, 0.6);
        border-color: #ffffff;
    }
    100% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
        border-color: #d86800;
    }
}

.now-playing-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.now-playing-images .stacked-img:not(.now-playing-thumbnail) {
    width: 100%;
    height: auto;
    display: block;
    margin: 5px 0;
}

/* ============================================================
   THUMBNAIL GRID (SHOW PLAYLIST)
============================================================ */
.thumbnail-grid {
    column-count: 4;
    column-gap: 15px;
    padding: 10px;
    max-width: 100%;
    margin: 0 auto;
}

.thumbnail-grid .thumb {
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
    background: #111;
    border: 2px solid #654321;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    break-inside: avoid;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.thumbnail-grid .thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.thumbnail-grid .thumb:hover {
    transform: scale(1.03);
    border-color: #ffffff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

.thumbnail-grid .thumb .video-title {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.9em;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.thumbnail-grid .thumb:hover .video-title {
    transform: translateY(0);
}

.thumbnail-grid .show-thumb {
    cursor: pointer;
}

.thumbnail-grid .show-thumb:hover {
    transform: scale(1.05);
    border-color: #d86800;
}

/* ============================================================
   PAGINATION CONTROLS
============================================================ */
.pagination-controls,
#pagination {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 15px auto;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.pagination-controls button,
#pagination button {
    background: #d4af37;
    color: #000;
    border: 1px solid #555;
    padding: 4px 10px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination-controls button:hover:not([disabled]),
#pagination button:hover:not([disabled]) {
    background: #ffcc00;
    color: #000;
    border-color: #777;
}

.pagination-controls button[disabled],
#pagination button[disabled] {
    background: #444;
    color: #bbb;
    cursor: default;
    opacity: 0.7;
}

/* ============================================================
   SHOW/EPISODE MODAL - FLOATING SLIDER
============================================================ */
.sc420-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sc420-modal .modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1600px;
    max-height: 65vh;
    border: 3px solid #d86800;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 50px rgba(216, 104, 0, 0.6);
    animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.sc420-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid #d86800;
    background: rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.sc420-modal .modal-show-title {
    font-family: 'Alfa Slab One', cursive;
    font-size: 2rem;
    color: #fff;
    text-shadow: 3px 2px #d86800;
    margin: 0;
}

.sc420-modal .modal-close {
    background-color: #d86800;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.sc420-modal .modal-close:hover {
    background-color: #ffffff;
    color: #d86800;
    transform: rotate(90deg) scale(1.1);
}

.sc420-modal .modal-actions {
    text-align: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(216, 104, 0, 0.3);
    flex-shrink: 0;
}

.sc420-modal .play-all-btn {
    background: linear-gradient(135deg, #d86800 0%, #ff8c00 100%);
    color: white;
    border: 2px solid #d86800;
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 15px rgba(216, 104, 0, 0.4);
}

.sc420-modal .play-all-btn:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #d86800;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.sc420-modal .episode-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 15px;
    padding: 20px;
    scroll-behavior: smooth;
    flex: 1;
    align-items: flex-start;
}

.sc420-modal .episode-grid::-webkit-scrollbar {
    height: 12px;
}

.sc420-modal .episode-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.sc420-modal .episode-grid::-webkit-scrollbar-thumb {
    background: #d86800;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.sc420-modal .episode-grid::-webkit-scrollbar-thumb:hover {
    background: #ff8c00;
}

.sc420-modal .episode-thumb {
    flex: 0 0 280px;
    height: 220px;
    background: #000;
    border: 2px solid #654321;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.sc420-modal .episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sc420-modal .episode-thumb:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: #d86800;
    box-shadow: 0 10px 25px rgba(216, 104, 0, 0.8);
    z-index: 10;
}

.sc420-modal .episode-thumb:hover img {
    transform: scale(1.1);
}

.sc420-modal .episode-thumb .video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
    color: #fff;
    padding: 40px 10px 10px 10px;
    font-size: 0.9em;
    text-align: center;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* ============================================================
   BOTTOM IMAGE STACK
============================================================ */
.site-bottom-image-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.stacked-image {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    margin: 0;
    padding: 0;
}

/* ============================================================
   RESPONSIVE - TABLET
============================================================ */
@media (max-width: 1024px) {
    .thumbnail-grid {
        column-count: 3;
    }
    
    .site-title {
        font-size: 4.5rem;
    }
    
    #site-title-animation-container {
        height: 100px;
    }
    
    .sc420-modal .modal-content {
        max-height: 60vh;
    }
    
    .sc420-modal .episode-thumb {
        flex: 0 0 240px;
        height: 190px;
    }
    
    .sc420-modal .modal-show-title {
        font-size: 1.7rem;
    }
}

/* ============================================================
   RESPONSIVE - MOBILE
============================================================ */
@media (max-width: 768px) {
    #top-menu {
        background-color: rgba(0, 0, 0, 0.95);
        left: -100%;
        top: 0;
        width: 80%;
        height: 100vh;
        transition: left 0.3s ease-in-out;
        display: block;
        overflow-y: auto;
        padding-top: 60px;
    }

    #top-menu.menu-open {
        left: 0;
    }

    .menu-button {
        position: fixed;
        left: 10px;
        top: 10px;
        z-index: 1001;
        color: white;
        text-align: left;
        padding: 15px 20px;
        display: block;
        background-color: rgba(0, 0, 0, 0.7);
        border-radius: 5px;
        border: 2px solid #d86800;
    }

    .menu-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .menu-links a {
        font-size: 1.8em;
        padding: 15px 10px;
        width: 100%;
        border-bottom: 1px solid rgba(216, 104, 0, 0.3);
    }
    
    .thumbnail-grid {
        column-count: 2;
    }
    
    .site-title {
        font-size: 3.5rem;
    }
    
    .sc420-modal .modal-content {
        width: 100%;
        max-height: 70vh;
        border-radius: 15px 15px 0 0;
    }
    
    .sc420-modal .episode-thumb {
        flex: 0 0 200px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .thumbnail-grid {
        column-count: 1;
    }
    
    .site-title {
        font-size: 2.5rem;
    }
    
    .sc420-modal .modal-content {
        max-height: 75vh;
    }
    
    .sc420-modal .episode-thumb {
        flex: 0 0 170px;
        height: 140px;
    }
}
/* ============================================
   PAGINATION STYLING - Bigger & Centered
   ============================================ */

/* Container */
#pagination,
.video-pagination {
    display: flex;
    justify-content: center;  /* Center horizontally */
    align-items: center;      /* Center vertically */
    gap: 10px;                /* Space between buttons */
    margin: 40px auto;        /* Space above/below, center container */
    padding: 20px;
    width: 100%;
}

/* Pagination Buttons */
#pagination button,
.video-pagination button {
    /* SIZE */
    font-size: 1.5rem;        /* Make text bigger (adjust as needed) */
    min-width: 50px;          /* Minimum button width */
    min-height: 50px;         /* Make buttons taller */
    padding: 12px 20px;       /* Internal spacing */
    
    /* STYLING */
    background: #333;
    color: #fff;
    border: 2px solid #555;
    border-radius: 8px;       /* Rounded corners */
    cursor: pointer;
    font-weight: bold;
    
    /* EFFECTS */
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Hover Effect */
#pagination button:hover,
.video-pagination button:hover {
    background: #555;
    border-color: #777;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

/* Active/Current Page */
#pagination button:disabled,
.video-pagination button:disabled {
    background: #d86800;      /* Your theme orange color */
    color: #fff;
    border-color: #d86800;
    cursor: default;
    transform: none;
}

/* Previous/Next Buttons - Make them stand out */
#pagination button:first-child,
#pagination button:last-child {
    font-weight: bold;
    padding: 12px 25px;       /* Slightly wider */
}
/* Smaller on mobile devices */
@media (max-width: 768px) {
    #pagination button {
        font-size: 1.5rem;
        min-width: 50px;
        min-height: 50px;
        padding: 12px 15px;
    }
    
    #pagination {
        gap: 10px;
    }
}
```

---

## 🔍 Troubleshooting:

### **If Nothing Changed:**

1. **Check the right file:** Make sure you edited `style.css` in your **SC420RADIO** theme folder
2. **Clear cache again:** Purge Cloudflare cache one more time
3. **Hard refresh:** Do `Ctrl + Shift + F5` (super hard refresh)
4. **Check browser console:** Press `F12`, look for CSS errors

### **If It Looks Wrong:**

- **Too big?** Lower the `font-size` from `2rem` to `1.5rem`
- **Not centered?** Make sure the code is exactly as I showed
- **Wrong colors?** You can change `background: #333;` to any color you want

---

## 🎯 Visual Guide:

**Your pagination should look like this:**
```
[← Previous]  [1]  [2]  [3]  [4]  [5]  [Next →]
     ↑         ↑    ↑    ↑    ↑    ↑       ↑
  60px wide   Big numbers (2rem)    Centered on page