/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GLOBAL BACKGROUND */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a52 50%, #0f2847 100%);
    background-size: 300% 300%;
    animation: bgShift 30s ease-in-out infinite;
    color: #e0e8f0;
    margin: 0;
    padding: 20px;
    margin-top: 100px;
    overflow-x: hidden;
}

/* FIX: WordPress admin bar */
body.page,
body.admin-bar {
    margin-top: 68px !important;
    padding-top: 0 !important;
}

@keyframes bgShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Tools Index Page */
.tools-list-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.tool-item {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    margin: 20px 0;
    border-radius: 12px;
    transition: transform 0.15s ease, background 0.2s ease;
}

.tool-item:hover {
    transform: scale(1.02);
    background: rgba(255,255,255,0.08);
}

.tool-title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.tool-description {
    font-size: 18px;
    color: #c7d4e3;
}

input, select, button {
    padding: 6px;
    font-size: 14px;
}

.tool-row:hover {
    background: #f0f4ff;
}

button {
    cursor: pointer;
}

/* FLOATING GLOWS */
.bg-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    top: -120px;
    right: -120px;
    animation: float 20s infinite ease-in-out;
}

.glow-2 {
    bottom: -180px;
    left: -180px;
    animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(30px, 30px); }
}

/* MAIN CONTAINER */
.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: auto;
    background: rgba(10, 22, 40, 0.6);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* TOP IMAGE */
.top-image {
    width: 100%;
    margin-bottom: 25px;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* SITE HEADER */
.site-header {
    width: 100%;
    background: #0f2c45;
    padding: 30px 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* CREATIVE TECH FONT UPGRADE */
/* ABRIL FATFACE — ARTISTIC DISPLAY FONT */
.site-logo,
.site-link,
.site-link {
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 400;
}


/* LINK BASE */
.site-logo {
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}

/* Wrapper (layout only) */
.site-links {
    display: block;
    text-align: center;
}

/* Base link styling */
.site-link {
    font-size: 2.4rem;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    margin: 0 2rem;
    text-shadow: none;
    transition: text-shadow 0.2s ease;
}

/* Glow hover */
.site-link:hover {
    text-shadow:
        0 0 10px rgba(0, 217, 255, 1),
        0 0 20px rgba(0, 217, 255, 0.9),
        0 0 30px rgba(0, 217, 255, 0.6);
    text-decoration: none;
}

.site-links img {
    flex-basis: 100%;
    width: 40%;
    height: auto;
    display: block;
    margin: 0 auto 12px auto;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    display: block;
}

.site-header-logo {
    display: block;
    max-width: 850px;
    width: 100%;
    height: auto;
    margin: 0 auto 12px auto;
}

.header-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* HEADERS */
h1 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: #00d9ff;
    text-align: center;
}

h2 {
    margin-top: 35px;
    margin-bottom: 15px;
    color: #ffeb3b;
    font-size: 1.4rem;
}

/* PARAGRAPHS */
p {
    line-height: 1.6;
    margin-bottom: 18px;
    color: #c7d4e3;
}

/* BULLET LISTS */
ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* VIDEO EMBEDS */
.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(0, 217, 255, 0.3);
    margin-bottom: 30px;
}

.video-container iframe,
.video-container video {
    width: 100%;
    height: 100%;
    border: none;
}

/* PRIMARY BUTTON */
.button,
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg,
        #ff4d4d,
        #ffae42,
        #ffee55,
        #55ff88,
        #55bbff,
        #aa66ff,
        #ff4d4d
    );
    background-size: 400% 400%;
    animation: colorDrift 12s ease-in-out infinite, glowPulse 3s ease-in-out infinite;
    color: #fff;
    text-shadow:
        1px 1px 2px #000,
        -1px 1px 2px #000,
        1px -1px 2px #000,
        -1px -1px 2px #000;
    padding: 16px 34px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
    transition: opacity 0.2s;
}

.button:hover,
.btn-primary:hover {
    opacity: 0.9;
}

@keyframes colorDrift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 12px rgba(255, 77, 77, 0.5);
        filter: brightness(1);
    }
    25% {
        box-shadow: 0 0 16px rgba(255, 174, 66, 0.55);
        filter: brightness(1.07);
    }
    40% {
        box-shadow: 0 0 20px rgba(255, 238, 85, 0.6);
        filter: brightness(1.12);
    }
    60% {
        box-shadow: 0 0 20px rgba(85, 255, 136, 0.55);
        filter: brightness(1.1);
    }
    80% {
        box-shadow: 0 0 20px rgba(85, 187, 255, 0.55);
        filter: brightness(1.12);
    }
    100% {
        box-shadow: 0 0 12px rgba(255, 77, 77, 0.5);
        filter: brightness(1);
    }
}

/* SUBTITLE GLOW */
.subtitle {
    font-size: 1.25rem;
    color: #e0f7ff;
    text-align: center;
    text-shadow:
        0 0 6px rgba(0, 217, 255, 0.8),
        0 0 12px rgba(0, 217, 255, 0.6),
        0 0 20px rgba(0, 217, 255, 0.45);
    animation: subtitleGlow 4s ease-in-out infinite;
}

@keyframes subtitleGlow {
    0% {
        text-shadow:
            0 0 6px rgba(0, 217, 255, 0.8),
            0 0 12px rgba(0, 217, 255, 0.6),
            0 0 20px rgba(0, 217, 255, 0.45);
    }
    50% {
        text-shadow:
            0 0 10px rgba(0, 217, 255, 1),
            0 0 18px rgba(0, 217, 255, 0.85),
            0 0 26px rgba(0, 217, 255, 0.6);
    }
    100% {
        text-shadow:
            0 0 6px rgba(0, 217, 255, 0.8),
            0 0 12px rgba(0, 217, 255, 0.6),
            0 0 20px rgba(0, 217, 255, 0.45);
    }
}

/* SECONDARY BUTTON */
.btn-secondary {
    display: inline-block;
    background: #1E8E3E;  /* ← Better gray color */
    color: #fff;          /* ← White text */
    padding: 16px 34px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;      /* ← Changed from not-allowed */
    opacity: 1;           /* ← Changed from 0.6 */
    border: none;         /* ← Add this for button element */
    transition: background 0.3s; /* ← Smooth hover effect */
}
.btn-secondary:hover {
    background: #5a6268;  /* ← Darker on hover */
    opacity: 1;           /* ← Changed from 0.6 */
}

/* BUTTON WRAPPER */
.download-buttons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

/* LINKS */
a,
.text-link {
    color: #00d9ff;
    text-decoration: none;
}

a:hover,
.text-link:hover {
    text-decoration: underline;
}

#clear-filters:hover {
    text-decoration: underline;
}

/* FOOTER */
#footer,
.footer-links {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #7a8fa3;
}

#footer a,
.footer-links a {
    color: #00d9ff;
    margin: 0 10px;
}

#footer a:hover,
.footer-links a:hover {
    text-decoration: underline;
}

/* Social Media Icons */
.social-icons {
  text-align: center;
  margin-bottom: 12px;
}

.social-icons img {
  width: 36px;
  height: 36px;
  margin: 0 8px;
  vertical-align: middle;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.social-icons img:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

/* FILTERS */
.filters-container {
    max-width: 900px;
    margin: 0 auto 20px auto;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-input {
    padding: 10px;
    width: 180px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.filter-input::placeholder {
    color: #ccc;
}

select.filter-input {
    background: rgba(20, 30, 45, 0.9);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    appearance: none;
}

select.filter-input option {
    background: rgba(20, 30, 45, 0.95);
    color: #fff;
}
.filters-inline-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

#clear-filters {
    cursor: pointer;
    color: #6bc4ff;
    white-space: nowrap;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 6px;
}

.items-per-page label {
    color: #c7d4e3;
}
/* LOGO IMAGE */
.ggf-logo {
    width: 40vw;
    max-width: 60vw;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
}

/* HERO CTA */
.cta-hero {
    display: block;
    margin: 0 auto;
    text-align: center;
}

/* --- GLOBAL SAFETY --- */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 992px) {
    .ggf-logo {
        width: 60vw;
        height: auto;
        display: block;
        margin: 0 auto 10px auto;
    }

    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.25rem;
    }
    h2.section-heading {
        font-size: 2rem;
    }
    .alert-container {
        flex-direction: column;
        align-items: center;
    }
    .alert-card {
        max-width: 100%;
    }
}

.hero-section {
    margin-top: -45px;
}

@media (max-width: 768px) {
    .ggf-logo {
        width: 40vw;
        height: auto;
        display: block;
        margin: 0 auto 10px auto;
    }

    section {
        padding: 2rem 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .cta-hero {
        font-size: 1.2rem;
        padding: 0.75rem 2rem;
    }
    h2.section-heading {
        font-size: 1.75rem;
    }
    .tiers-grid {
        grid-template-columns: 1fr;
    }
    .tier-card.featured {
        transform: scale(1.02);
    }
    .resource-item {
        flex-direction: column;
        text-align: center;
    }
    .resource-icon {
        margin: 0 0 0.5rem 0;
    }
    .download-btn {
        margin-top: 1rem;
    }
}

/* MOBILE SPACING FIXES */
@media (max-width: 480px) {
    .ggf-logo {
        width: 85vw;
        max-width: 85vw;
        height: auto;
        display: block;
        margin: 0 auto 10px auto;
    }

    .site-link {
        font-size: 1.2rem;
        margin: 0 0.5rem;
    }

    section {
        padding-top: 1rem !important;
        padding-bottom: 0.15rem !important;
    }

    .critical-info-section {
        margin-top: -1rem;
    }

    .header-spacer {
        height: auto !important;
        min-height: 70px;
    }

    .hero-content-wrapper {
        margin-top: 2.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    h1 {
        font-size: 1.7rem;
        line-height: 1.2;
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
        padding: 0 1rem;
        word-break: break-word;
        text-align: center;
    }
}

/* Related videos grid */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.related-item {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 12px;
    text-align: left;
    transition: transform 0.15s ease, background 0.2s ease;
}

.related-item:hover {
    transform: scale(1.02);
    background: rgba(255,255,255,0.08);
}

.related-thumb {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 8px;
}

.related-title {
    font-size: 1rem;
    color: #e0e8f0;
}

/* Transcript styling */
.transcript-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.transcript-line {
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #c7d4e3;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.timestamp {
    background: rgba(0, 217, 255, 0.15);
    border: 1px solid rgba(0, 217, 255, 0.6);
    color: #00d9ff;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
}

.timestamp:hover {
    background: rgba(0, 217, 255, 0.3);
}

.transcript-text {
    flex: 1;
}

/* DATE TIMESTAMP SEARCH */
.filter-large {
    width: 100%;
    padding: 14px;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination button {
    background: #0f2c45;
    color: white;
    padding: 10px 18px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    border: none;
}

.pagination button:hover {
    background: #164d72;
}