/* ==============================
   GLOBAL WRAPPER
   ============================== */

.tow-homepage {
    background: radial-gradient(circle at top, #151f4d 0, #050818 40%, #02030a 100%);
    color: #f5f7ff;
    font-family: inherit;
}

/* ==============================
   HERO SECTION
   ============================== */

.tow-hero {
    position: relative;
    min-height: 320px;
    padding: 70px 20px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.tow-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 20, 0.9) 0%,
        rgba(0, 5, 50, 0.7) 40%,
        rgba(0, 5, 50, 0.2) 100%
    );
    mix-blend-mode: multiply;
}


.tow-hero-inner {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
}

.tow-hero-title {
    font-size: clamp(2.2rem, 3vw, 3rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.4em;
    text-shadow: 0 0 16px rgba(0,0,0,0.9);
}

.tow-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 1.8em;
    opacity: 0.9;
}

.tow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7em 1.6em;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.tow-btn-primary {
    background: linear-gradient(135deg, #ffce3a, #ff9b00);
    color: #111;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 8px 18px rgba(0,0,0,0.6);
}

.tow-btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ffe47c, #ffb400);
}

/* Forum box in sidebar */
.tow-sidebar-forum-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tow-sidebar-forum-list li + li {
    margin-top: 6px;
}

.tow-sidebar-forum-list a {
    color: #d7e5ff;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
}

.tow-sidebar-forum-list a:hover {
    color: #ffce3a;
}

.tow-sidebar-forum-date {
    display: block;
    font-size: 0.75rem;
    color: #9fb0ff;
    margin-top: 1px;
}


/* ==============================
   LAYOUT
   ============================== */

.tow-container {
    max-width: 100%;
    margin: 30px auto 60px;
    padding: 0 20px;
}

.tow-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(260px, 1fr);
    gap: 32px;
}

.tow-main {
    min-width: 0;
}

.tow-sidebar {
    min-width: 0;
}

/* Responsive */
@media (max-width: 960px) {
    .tow-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   SECTION HEADERS
   ============================== */

.tow-section {
    margin-bottom: 40px;
}

.tow-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.tow-section-title {
    position: relative;
    display: inline-block;
    padding: 6px 14px 7px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: linear-gradient(135deg, #141c48, #070c2b);
    border-left: 3px solid #4ea5ff;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-right: 1px solid rgba(0,0,0,0.6);
    border-bottom: 1px solid rgba(0,0,0,0.9);
    box-shadow: 0 3px 8px rgba(0,0,0,0.75);
}

.tow-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    right: -80px;
    bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, #4ea5ff, rgba(78,165,255,0));
    opacity: 0.7;
}

/* ==============================
   TIDAL NEWS FLASH
   ============================== */

.tow-flash-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1080px) {
    .tow-flash-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tow-flash-grid {
        grid-template-columns: 1fr;
    }
}

.tow-flash-item {
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top left, #1c2558, #050a2e 70%);
    border-radius: 4px;
    border: 1px solid rgba(60, 100, 200, 0.7);
    box-shadow: 0 4px 12px rgba(0,0,0,0.7);
    overflow: hidden;
    text-decoration: none;
    color: #f5f7ff;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.tow-flash-item:hover {
    transform: translateY(-2px);
    border-color: #8bd3ff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.85);
}

.tow-flash-thumb img,
.tow-flash-thumb-placeholder {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.tow-flash-thumb-placeholder {
    background: repeating-linear-gradient(
        -45deg,
        #0b1028 0,
        #0b1028 6px,
        #13193b 6px,
        #13193b 12px
    );
}

.tow-flash-caption {
    padding: 8px 9px 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ==============================
   COMMUNITY NEWS
   ============================== */

.tow-community-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 800px) {
    .tow-community-grid {
        grid-template-columns: 1fr;
    }
}

.tow-community-item {
    background: linear-gradient(145deg, #090f32, #05071a);
    border-radius: 4px;
    border: 1px solid rgba(61, 98, 196, 0.6);
    padding: 12px 13px 13px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.7);
}

.tow-community-title {
    margin: 0 0 4px;
    font-size: 1rem;
}

.tow-community-title a {
    color: #f8fbff;
    text-decoration: none;
}

.tow-community-title a:hover {
    color: #ffce3a;
}

.tow-community-date {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #98b7ff;
    margin-bottom: 6px;
}

.tow-community-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #d4ddff;
}

/* ==============================
   LATEST VIDEOS (SHORTCODE WRAPPER)
   ============================== */

.tow-videos-wrapper {
    background: linear-gradient(135deg, #050818, #050b25);
    border-radius: 4px;
    border: 1px solid rgba(61, 98, 196, 0.7);
    padding: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.8);
}

/* If your video shortcode outputs a grid, you can help it along: */
.tow-videos-wrapper iframe,
.tow-videos-wrapper img {
    border-radius: 3px;
}

/* Example generic tweaks – adjust if you know the shortcode’s classes */
.tow-videos-wrapper .video-item,
.tow-videos-wrapper .yvs-video-item {
    border-radius: 4px;
    overflow: hidden;
}

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

.tow-sidebar-heading {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(96, 141, 255, 0.6);
}

.tow-sidebar-banner img {
    display: block;
    width: 100%;
    border-radius: 4px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

.tow-sidebar-box {
    background: linear-gradient(150deg, #05081a, #090f30);
    border-radius: 4px;
    border: 1px solid rgba(61, 98, 196, 0.7);
    padding: 10px 12px 12px;
    margin-bottom: 18px;
    box-shadow: 0 3px 9px rgba(0,0,0,0.8);
}

.tow-sidebar-box h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #f0f3ff;
}

.tow-sidebar-content {
    font-size: 0.9rem;
}

.tow-sidebar-content a {
    color: #ffce3a;
    text-decoration: none;
}

.tow-sidebar-content a:hover {
    text-decoration: underline;
}

/* Sidebar links list (Games) */
.tow-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tow-sidebar-list li + li {
    margin-top: 4px;
}

.tow-sidebar-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d7e5ff;
    text-decoration: none;
    font-size: 0.9rem;
}

.tow-sidebar-list a::before {
    content: '⯈';
    font-size: 0.7rem;
    opacity: 0.8;
}

.tow-sidebar-list a:hover {
    color: #ffce3a;
}

.tow-home-edit-button-wrap {
    max-width: 1200px;
    margin: 10px auto 0;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
}

.tow-home-edit-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 3px;
    border: 1px solid rgba(255,206,58,0.8);
    background: linear-gradient(135deg, #2a325e, #121733);
    color: #ffce3a;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.8);
}

.tow-home-edit-button:hover {
    background: linear-gradient(135deg, #3c4676, #1c2144);
}


/* ==============================
   TYPO + GENERAL
   ============================== */

.tow-section p {
    margin-top: 0;
}

/* Give a bit of breathing room on small screens */
@media (max-width: 640px) {
    .tow-container {
        margin-top: 20px;
        margin-bottom: 40px;
    }

    .tow-hero {
        padding: 50px 18px;
        min-height: 260px;
    }
}