/* InzpireX - Kits Page Specific Styles
   This file contains styles specific to the kits page (kits.html)
   General/shared styles remain in style.css */

/* ============================================
   PAGE BANNER - Kits Page
   ============================================ */

.page-banner {
    padding: 10rem 1.5rem 4rem;
    text-align: center;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.page-banner .container {
    width: 100%;
}

.page-banner .section-title {
    color: white;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 3rem);
}

.page-banner .section-description {
    max-width: 720px;
    margin: 0 auto;
    color: var(--slate-400);
    font-size: 1.125rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .page-banner {
        padding: 8rem 1rem 3rem;
        min-height: 40vh;
    }
    
    .page-banner .section-description {
        font-size: 1rem;
    }
}

/* ============================================
   TABS CONTAINER - Interactive Kit Display
   ============================================ */

.tabs-container {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--slate-200);
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--slate-200);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--slate-50);
}

/* Hide scrollbar but keep functionality */
.tabs-nav::-webkit-scrollbar {
    height: 3px;
}

.tabs-nav::-webkit-scrollbar-track {
    background: var(--slate-100);
}

.tabs-nav::-webkit-scrollbar-thumb {
    background: var(--primary-600);
    border-radius: 10px;
}

.tab-btn {
    flex: 1;
    min-width: max-content;
    padding: 1rem 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--slate-500);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-500);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.tab-btn:hover {
    color: var(--primary-600);
    background: white;
}

.tab-btn.active {
    color: var(--primary-700);
    background: white;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

@media (max-width: 640px) {
    .tab-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   TAB CONTENT - Kit Details
   ============================================ */

.tab-content {
    padding: 2rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .tab-content {
        padding: 1.5rem;
    }
}

/* ============================================
   TAB HEADER - Kit Title & Icon
   ============================================ */

.tab-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--slate-100);
}

.tab-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.1), rgba(45, 212, 191, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.tab-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--slate-900);
}

.tab-subtitle {
    color: var(--slate-500);
    font-size: 0.9375rem;
    font-weight: 500;
}

@media (max-width: 640px) {
    .tab-header {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .tab-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    .tab-title {
        font-size: 1.25rem;
    }
    
    .tab-subtitle {
        font-size: 0.875rem;
    }
}

/* ============================================
   PROJECTS GRID - Project List
   ============================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--slate-50);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border: 1px solid var(--slate-100);
}

.project-item:hover {
    background: white;
    border-color: var(--accent-400);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.project-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-600);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-name {
    font-size: 0.9375rem;
    color: var(--slate-700);
    font-weight: 500;
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .project-item {
        padding: 0.875rem;
    }
    
    .project-number {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
    
    .project-name {
        font-size: 0.875rem;
    }
}

/* ============================================
   QUALITY SECTION - Feature Grid
   ============================================ */

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-grid.reverse {
    direction: rtl;
}

.feature-grid.reverse > * {
    direction: ltr;
}

.feature-content {
    max-width: 540px;
}

.feature-content p {
    color: var(--slate-600);
    line-height: 1.7;
    margin-top: 1rem;
}

.feature-title {
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--slate-200);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.feature-image-container {
    position: relative;
}

.feature-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid rgba(45, 212, 191, 0.2);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .feature-grid.reverse {
        direction: ltr;
    }
    
    .feature-content {
        max-width: 100%;
    }
    
    .feature-image-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .feature-grid {
        gap: 2rem;
    }
    
    .feature-title {
        margin-bottom: 0.75rem;
    }
    
    .feature-list {
        margin-top: 1rem;
    }
    
    .feature-list li {
        padding: 0.5rem 0;
    }
}

/* ============================================
   CTA SECTION - Bulk Orders
   ============================================ */

.cta-section {
    text-align: center;
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-800), var(--primary-900));
    border-radius: var(--radius-2xl);
    margin: 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='%232dd4bf' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M30 0v60M0 30h60'/%3E%3Ccircle cx='30' cy='30' r='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    color: white;
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.cta-description {
    color: var(--slate-300);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .cta-section {
        padding: 3rem 1.5rem;
        margin: 0 1rem;
        border-radius: var(--radius-xl);
    }
    
    .cta-title {
        margin-bottom: 0.75rem;
    }
    
    .cta-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
}

/* ============================================
   SECTION SPACING - Kits Page
   ============================================ */

.section {
    padding: 6rem 1.5rem;
}

.section-light {
    background: white;
}

.section-gray {
    background: var(--slate-100);
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 1rem;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 3rem 1rem;
    }
}

/* ============================================
   TAB-SPECIFIC STYLING
   ============================================ */

/* Makers Kit - Orange accent */
#makers .tab-icon {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1), rgba(249, 115, 22, 0.1));
    color: #f97316;
}

#makers .project-number {
    background: #f97316;
}

/* Little Champs - Green accent */
#little .tab-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.1));
    color: #22c55e;
}

#little .project-number {
    background: #22c55e;
}

/* Junior Champs - Blue accent */
#junior .tab-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    color: #3b82f6;
}

#junior .project-number {
    background: #3b82f6;
}

/* Senior Champs - Purple accent */
#senior .tab-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(147, 51, 234, 0.1));
    color: #a855f7;
}

#senior .project-number {
    background: #a855f7;
}

/* ATL Projects - Teal accent */
#atl .tab-icon {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(13, 148, 136, 0.1));
    color: #14b8a6;
}

#atl .project-number {
    background: #14b8a6;
}

/* ============================================
   LOADING STATES
   ============================================ */

.tabs-container.loading {
    pointer-events: none;
    opacity: 0.6;
}

.tab-content.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--slate-200);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================
   ACCESSIBILITY - Kits Page
   ============================================ */

.tab-btn:focus-visible {
    outline: 2px solid var(--accent-500);
    outline-offset: -2px;
    z-index: 1;
}

.project-item:focus-within {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    border-radius: var(--radius-md);
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .tab-content,
    .project-item {
        animation: none;
        transition: none;
    }
    
    .project-item:hover {
        transform: none;
    }
}

/* ============================================
   PRINT STYLES - Kits Page
   ============================================ */

@media print {
    .page-banner {
        background: white !important;
        color: black !important;
        padding: 2rem 1rem;
    }
    
    .page-banner .section-title,
    .page-banner .section-description {
        color: black !important;
    }
    
    .tabs-nav {
        display: none;
    }
    
    .tab-content {
        display: block !important;
        page-break-before: always;
        padding: 1rem 0;
    }
    
    .tab-content:first-of-type {
        page-break-before: avoid;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .project-item {
        break-inside: avoid;
        border: 1px solid #ddd;
        padding: 0.5rem;
    }
    
    .cta-section {
        display: none;
    }
    
    .feature-image-container {
        display: none;
    }
}

/* ============================================
   SCROLL BEHAVIOR
   ============================================ */

/* Smooth scroll to tabs when switching */
.tabs-container {
    scroll-behavior: smooth;
}

/* Active tab stays centered on mobile */
@media (max-width: 768px) {
    .tabs-nav {
        scroll-padding: 1rem;
    }
    
    .tab-btn.active {
        scroll-margin-inline: 1rem;
    }
}

/* ============================================
   HOVER ENHANCEMENTS
   ============================================ */

.project-item:hover .project-number {
    transform: scale(1.1);
    transition: transform var(--transition-fast);
}

.project-item:hover .project-name {
    color: var(--primary-700);
}

/* Tab button hover animation */
.tab-btn:hover:not(.active) {
    transform: translateY(-2px);
}

/* ============================================
   EMPTY STATE (if no projects)
   ============================================ */

.projects-grid:empty::after {
    content: 'No projects available';
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--slate-400);
    font-size: 1.125rem;
}

/* ============================================
   BADGE STYLING (optional enhancement)
   ============================================ */

.kit-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(45, 212, 191, 0.1);
    color: var(--accent-500);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    margin-left: 0.5rem;
}

/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */

@media (max-width: 480px) {
    .tab-title {
        font-size: 1.125rem;
    }
    
    .tab-subtitle {
        font-size: 0.8125rem;
    }
    
    .project-name {
        font-size: 0.8125rem;
    }
}