/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --youtube-red: #ff0000;
    --text-color: #333;
    --light-bg: #f5f6fa;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Navigation */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    padding: 0 2rem;
    height: 100px;
}

.logo {
    flex: 0 0 auto;
    margin-bottom: 0;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
}

.header-ad-container {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 0;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-menu {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    margin-left: 1rem;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 1rem;
}

.tagline {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: -0.5rem;
}

.youtube-badge {
    background-color: var(--youtube-red);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.youtube-badge i {
    margin-right: 0.3rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 140px;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--youtube-red);
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.youtube-button {
    background-color: var(--youtube-red);
}

.cta-button:hover {
    background-color: #c0392b;
}

.youtube-button:hover {
    background-color: #cc0000;
}

/* Section Styles */
.section-subtitle {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* Featured Sections */
#featured-videos, #featured-products {
    padding: 5rem 5%;
    background-color: var(--light-bg);
}

.video-grid, .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Newsletter Section */
#newsletter {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 5%;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

#newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

#newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
}

#newsletter-form button {
    padding: 0.8rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#newsletter-form button:hover {
    background-color: #c0392b;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 5%;
    text-align: center;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem !important;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.youtube-link:hover {
    color: var(--youtube-red) !important;
}

/* Responsive Design */
@media (max-width: 900px) {
    .navbar {
        flex-wrap: wrap;
        height: auto;
        padding: 0 1rem;
    }
    .header-ad-container {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: relative;
        height: 70px;
        padding: 0 0.5rem;
    }
    .mobile-menu {
        display: block;
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
        z-index: 1100;
        background: none;
        border: none;
        outline: none;
    }
    .mobile-menu .bar,
    .mobile-menu .close {
        display: none;
        font-size: 2rem;
        transition: color 0.2s;
    }
    .mobile-menu .bar {
        display: inline;
    }
    .mobile-menu.open .bar {
        display: none;
    }
    .mobile-menu.open .close {
        display: inline;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100vw;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        z-index: 1000;
        padding: 1rem 0;
        transition: max-height 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }
    .nav-links.open {
        display: flex;
        max-height: 500px;
        overflow: visible;
    }
}

/* Video Grid Styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.video-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    min-height: 350px;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-button {
    opacity: 1;
}

.play-button i {
    color: white;
    font-size: 24px;
    margin-left: 4px;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.video-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Videos Page Styles */
.videos-page {
    margin-top: 80px;
    padding: 2rem 5%;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 200px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.video-content {
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links a.active {
    color: var(--secondary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .videos-page {
        margin-top: 60px;
        padding: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header {
        margin-top: 170px;
    }
}

/* Video Preview Section */
.video-preview {
    max-width: 1200px;
    margin: 0 auto;
}

.video-preview .video-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.section-footer {
    text-align: center;
    margin-top: 2rem;
}

.section-footer .cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.section-footer .cta-button:hover {
    background-color: #c0392b;
}

@media (max-width: 768px) {
    .video-preview .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Placeholder Page Styles */
.page-content {
    margin-top: 200px; /* Increased to account for navbar + ad */
    padding: 2rem 5%;
    min-height: calc(100vh - 80px - 200px); /* Account for navbar and footer */
}

.content-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.content-section p {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .page-content {
        margin-top: 170px; /* Adjusted for mobile */
        padding: 1rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .content-section p {
        font-size: 1.1rem;
    }
}

/* Amazon Affiliate Button Styles */
.amazon-btn {
    display: inline-block;
    margin: 0;
    padding: 0.3em 0.8em;
    font-size: 0.85em;
    background: linear-gradient(90deg, #ff9900 0%, #ff5a00 100%);
    color: #fff !important;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.15);
    transition: transform 0.2s cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
    position: absolute;
    right: 1.2em;
    bottom: 1.2em;
    vertical-align: middle;
    line-height: 1.2;
    z-index: 2;
}

.amazon-btn:after {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.15);
    opacity: 0;
    transition: opacity 0.2s;
}

.amazon-btn:hover, .amazon-btn:focus {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(255, 90, 0, 0.25);
}

.amazon-btn:hover:after, .amazon-btn:focus:after {
    opacity: 1;
}

@media (max-width: 768px) {
    .amazon-btn {
        right: 0.8em;
        bottom: 0.8em;
        font-size: 0.95em;
    }
}

.logo img.ktg-logo {
    width: 120px;
    height: auto;
    display: block;
    margin-bottom: 0.2rem;
}
@media (max-width: 768px) {
    .logo img.ktg-logo {
        width: 90px;
    }
}

.about-bio {
    background: linear-gradient(90deg, #f5f6fa 60%, #e3eafc 100%);
    border-left: 6px solid var(--primary-color);
    border-radius: 8px;
    padding: 2rem 2rem 1.5rem 2rem;
    margin: 2rem auto 0 auto;
    max-width: 700px;
    box-shadow: 0 2px 12px rgba(44,62,80,0.07);
}
.about-bio p {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 1.1em;
    line-height: 1.7;
}
.about-bio strong {
    color: var(--secondary-color);
    font-weight: 700;
}
.about-thanks {
    color: var(--youtube-red);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 2em;
    margin-bottom: 0.5em;
    text-align: center;
}
.about-signature {
    color: var(--primary-color);
    font-family: 'Segoe Script', 'Brush Script MT', cursive, sans-serif;
    font-size: 1.3rem;
    text-align: right;
    margin-right: 1.5em;
    margin-top: 0;
}
@media (max-width: 768px) {
    .about-bio {
        padding: 1.2rem 0.7rem 1rem 1rem;
        max-width: 98%;
    }
    .about-signature {
        margin-right: 0.5em;
        font-size: 1.1rem;
    }
}

.left-justified {
    text-align: left !important;
}

/* Contact page Discord button override */
.contact-page .amazon-btn {
    position: static !important;
    display: inline-block;
    margin-bottom: 1.5em;
    margin-top: 0;
}

.desktop-header-ad { display: flex; }
.mobile-header-ad { display: none; }

@media (max-width: 768px) {
  .desktop-header-ad { display: none !important; }
  .mobile-header-ad {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0.5rem 0 0.5rem 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  }
} 