/* SkyTools Main CSS - Base Styles */

:root {
    /* Heading Underlines */
    --heading-underline-width: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-gradient);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header with navigation */
.header {
    background: var(--header-background);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Header logo and branding */
.brand-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.brand-tagline {
    font-size: 0.8rem;
    opacity: 0.7;
    font-weight: 400;
    color: var(--text-secondary);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Updated .version-switcher rule for main.css */
.version-switcher {
    display: flex;
    gap: 0.5rem;
    background: var(--switcher-background);
    border-radius: 25px;
    padding: 0.3rem;
    border: 1px solid var(--border-color);
}

/* Optional pulsing glow on version switcher container */
.version-switcher.glow {
    animation: version-switcher-glow 2s infinite;
    box-shadow: 0 0 16px var(--btn-glow-color, rgba(255, 255, 255, 0.6));
}

/* Keyframe animation for version switcher glow */
@keyframes version-switcher-glow {
    0%, 100% {
        box-shadow: 0 0 0 transparent;
    }
    50% {
        box-shadow: 0 0 16px var(--btn-glow-color, rgba(255, 255, 255, 0.6));
    }
}

@keyframes pulse-glow {
   0%, 100% {
      box-shadow: var(--btn-active-shadow);
   }
   50% {
      box-shadow: 0 0 16px var(--btn-glow-color, rgba(255, 255, 255, 0.6));
   }
}

.version-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: var(--btn-inactive);
    color: var(--text-primary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.version-btn.active {
    background: var(--btn-active);
    box-shadow: var(--btn-active-shadow);
}

.version-btn:not(.active):hover {
    background: var(--btn-hover);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-link:hover {
    background: var(--nav-hover);
    color: var(--accent-light);
}

.nav-link.cta {
    background: var(--cta-gradient);
    font-weight: 600;
    color: var(--cta-text);
}

.nav-link.cta:hover {
    background: var(--cta-hover);
    color: var(--cta-text);
}

.nav-link.content-link {
    color: var(--accent-subtle);
    font-weight: 500;
}

.nav-link.content-link:hover {
    background: var(--nav-hover);
    color: var(--accent-subtle);
}

/* Product navigation */
.product-nav {
    background: var(--section-background);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.product-title {
    text-align: center;
    margin-bottom: 1rem;
}

.product-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-main);
    margin-bottom: 1rem;
}

.product-page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}


.edition-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.edition-btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--edition-border);
    background: var(--edition-background);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.edition-btn.active {
    background: var(--edition-active);
    border-color: var(--accent-gold);
    box-shadow: var(--edition-active-shadow);
}

.edition-btn:not(.active):hover {
    background: var(--edition-hover);
    border-color: var(--accent-main);
}

/* Main content */
.main-content {
    flex: 1;
    padding: 0 1rem 2rem;
}

.content-section {
    background: var(--section-background);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}


.content-section h2 {
    color: var(--accent-light);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: var(--heading-underline-width);
    height: 3px;
    background: var(--accent-gold-gradient);
    border-radius: 2px;
}




.content-section h3 {
    color: var(--accent-main);
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    background: var(--feature-background);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--feature-border);
}

.feature-item h4 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.feature-item a {
    color: var(--text-primary);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.feature-item a:hover {
    opacity: 1;
    color: var(--accent-light);
}

/* Image sections */
.image-container {
    margin: 2rem 0;
}

.spaced-paragraph {
    margin-top: 1rem;
}

.image-container.full-width img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid var(--image-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.image-caption {
    margin-top: 1rem;
    text-align: center;
    opacity: 0.9;
    font-size: 0.9rem;
}

.image-caption strong {
    color: var(--accent-gold);
}

/* Side-by-side content and image */
.content-with-image {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
    margin-top: 1.5rem;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--image-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Limit thumbnail images to natural size */
.image-content img {
    max-width: 100%;
    width: auto;
    height: auto;
}

/* Image grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--image-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.grid-item img:hover {
    transform: scale(1.05);
}

.grid-item .image-caption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* Video sections */
.video-container {
    margin: 2rem 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--video-border);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.video-caption {
    margin-top: 1rem;
    text-align: center;
    opacity: 0.9;
}

.video-caption strong {
    color: var(--accent-gold);
}

/* Feature List Component - 2-Column Enhanced Arrows */
.feature-list-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.feature-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.3), rgba(59, 130, 246, 0.3));
    border: 1px solid var(--accent-main);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-list-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gold-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 9px;
}

.feature-list-item:hover::after {
    opacity: 0.15;
}

.feature-list-item:hover {
    transform: scale(1.03);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.3);
    padding-left: 1.5rem;
}

.feature-list-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.feature-list-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.feature-list-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.feature-list-arrow {
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.feature-list-item:hover .feature-list-arrow {
    transform: translateX(4px);
}

.feature-list-item:hover .feature-list-details {
    opacity: 1;
}

/* Footer */
.footer {
    background: var(--footer-background);
    padding: 2rem 1rem 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section a {
    color: var(--text-primary);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-light);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .edition-nav {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Image responsive */
    .content-with-image {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    /* Feature List Mobile Responsive */
    .feature-list-2col {
        grid-template-columns: 1fr;
    }
    
}

.content-section.compact {
    padding: 1rem 2rem !important;
    margin-bottom: 1rem !important;
}

.content-section.compact h3 {
    margin-top: 0 !important;
    margin-bottom: 0.8rem !important;
}

.content-section.compact h2 {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

.content-section.compact ul {
    margin-left: 2rem !important;
    margin-bottom: 1rem !important;
}

/* Spaced list items for better readability */
.spaced-list li {
    margin-bottom: 0.8rem;
}

.spaced-list li:last-child {
    margin-bottom: 0;
}

/* Podcast Button - Add this to your main.css */
.podcast-btn {
    display: inline-block;
    background: var(--accent-gold-gradient);
    color: #1e40af;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
}

.podcast-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.podcast-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    border-color: rgba(255, 255, 255, 0.2);
}

.podcast-btn:hover::before {
    left: 100%;
}

.podcast-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

/* Podcast icon animation */
.podcast-btn .podcast-icon {
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.podcast-btn:hover .podcast-icon {
    transform: scale(1.2) rotate(10deg);
}

/* Alternative compact version if you prefer smaller */
.podcast-btn.compact {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    width: auto;
    display: inline-block;
}