/* Transformation Section Styles */
/* Section spacing handled by common.css */
.transformation-section {
    /* Background defined in section-backgrounds.css */
    position: relative;
    overflow: hidden;
}

.transformation-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.transformation-section h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
}

/* Main Grid Layout */
.transformation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Visual Container */
.visual-container {
    width: 100%;
}

.split-screen-visual {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

/* Chaos Side */
.chaos-side {
    position: relative;
    min-height: 300px;
    padding: 20px;
    border-radius: 12px;
    background: var(--gray-100);
}

.chaos-side h3 {
    text-align: center;
    color: var(--danger);
    font-size: 20px;
    margin-bottom: 20px;
}

.chaos-elements {
    position: relative;
    height: 250px;
}

/* Browser Tabs */
.browser-tab {
    position: absolute;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 8px 8px 0 0;
    padding: 8px 16px;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-1 { top: 10px; left: 10px; transform: rotate(-5deg); }
.tab-2 { top: 30px; right: 20px; transform: rotate(3deg); }
.tab-3 { bottom: 80px; left: 30px; transform: rotate(-3deg); }
.tab-4 { bottom: 40px; right: 10px; transform: rotate(5deg); }

/* Scattered PDFs */
.scattered-pdf {
    position: absolute;
    font-size: 32px;
    opacity: 0.7;
}

.pdf-1 { top: 60px; left: 50%; transform: rotate(15deg); }
.pdf-2 { bottom: 20px; left: 20%; transform: rotate(-20deg); }
.pdf-3 { top: 100px; right: 30%; transform: rotate(10deg); }

/* Notes */
.note {
    position: absolute;
    font-size: 24px;
    opacity: 0.6;
}

.note-1 { bottom: 50px; left: 60%; transform: rotate(-10deg); }
.note-2 { top: 80px; right: 10%; transform: rotate(15deg); }

/* Transformation Arrow */
.transformation-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-icon {
    width: 60px;
    height: 40px;
}

/* Organized Side */
.organized-side {
    position: relative;
    min-height: 300px;
    padding: 20px;
    border-radius: 12px;
    background: var(--primary-light);
}

.organized-side h3 {
    text-align: center;
    color: var(--success);
    font-size: 20px;
    margin-bottom: 20px;
}

.organized-interface {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.workspace-header {
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
}

.organized-content {
    display: grid;
    grid-template-columns: 150px 1fr;
    height: 200px;
}

.sidebar {
    background: var(--gray-100);
    padding: 16px;
    border-right: 1px solid var(--gray-200);
}

.folder {
    padding: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.folder:hover {
    background: var(--gray-200);
}

.folder.active {
    background: var(--primary-light);
    color: var(--primary);
}

.main-view {
    padding: 16px;
}

.paper-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.paper-card {
    background: var(--gray-100);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Horizontal Tabs Container */
.transformation-tabs {
    background: transparent;
    overflow: visible;
}

/* Tab Navigation using Pico CSS patterns */
.transformation-tabs nav[role="tablist"] {
    display: flex;
    background: transparent;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--gray-200);
}

.transformation-tabs button[role="tab"] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 8px;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    /* Override Pico button styles */
    box-shadow: none;
    margin: 0;
}

.transformation-tabs button[role="tab"]:hover {
    background: transparent;
    box-shadow: none;
}

.transformation-tabs button[role="tab"][aria-selected="true"] {
    background: transparent;
    box-shadow: none;
}

.transformation-tabs button[role="tab"]:focus {
    outline: none;
    box-shadow: none;
}

.transformation-tabs button[role="tab"][aria-selected="true"]::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--primary);
}

.tab-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--gray-200);
    color: var(--gray-700);
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

button[role="tab"][aria-selected="true"] .tab-number {
    background: var(--primary);
    color: white;
}

.tab-icon {
    font-size: 24px;
}

.tab-title {
    font-size: 14px;
    font-weight: 600;
    color: black;
    transition: color 0.2s ease;
}

button[role="tab"][aria-selected="true"] .tab-title {
    color: var(--primary);
}

/* Tab Panels */
.tab-panels {
    padding: 32px 0;
    text-align: center;
}

.tab-panels div[role="tabpanel"] {
    animation: fadeIn 0.3s ease-out;
    /* Override any Pico card styles */
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.tab-panels h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.tab-panels p {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.panel-highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    padding: 8px 16px;
    border-radius: 8px;
}

.highlight-icon {
    font-size: 20px;
}

.highlight-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* Animation for tabs */
.transformation-tabs {
    opacity: 0;
    transform: translateY(20px);
}

.transformation-tabs.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    
    .transformation-section h2 {
        font-size: 36px;
    }
    
    .split-screen-visual {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .transformation-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }
    
    .chaos-side,
    .organized-side {
        min-height: 250px;
    }
    
    .tab-panels {
        padding: 24px 0;
    }
    
    .tab-panels h3 {
        font-size: 20px;
    }
    
    .tab-panels p {
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    
    .transformation-section h2 {
        font-size: 28px;
    }
    
    .split-screen-visual {
        padding: 20px;
    }
    
    .chaos-elements {
        height: 200px;
    }
    
    .browser-tab {
        font-size: 10px;
        padding: 6px 12px;
    }
    
    .scattered-pdf {
        font-size: 24px;
    }
    
    .note {
        font-size: 18px;
    }
    
    /* Tab adjustments for mobile */
    .transformation-tabs button[role="tab"] {
        padding: 12px 4px;
    }
    
    .tab-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .tab-icon {
        font-size: 20px;
    }
    
    .tab-title {
        font-size: 12px;
    }
    
    .tab-panels {
        padding: 20px 0;
    }
    
    .tab-panels h3 {
        font-size: 18px;
    }
    
    .tab-panels p {
        font-size: 14px;
    }
    
    .panel-highlight {
        padding: 6px 12px;
    }
    
    .highlight-icon {
        font-size: 16px;
    }
    
    .highlight-text {
        font-size: 12px;
    }
}

/* Step animations */
.transformation-step {
    opacity: 0;
    transform: translateY(20px);
}

.transformation-step.animate-in {
    animation: slideUpFade 0.6s ease-out forwards;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rotation)); }
    50% { transform: translateY(-10px) rotate(var(--rotation)); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.chaos-elements > * {
    animation: float 3s ease-in-out infinite;
}

.tab-1 { --rotation: -5deg; animation-delay: 0s; }
.tab-2 { --rotation: 3deg; animation-delay: 0.5s; }
.tab-3 { --rotation: -3deg; animation-delay: 1s; }
.tab-4 { --rotation: 5deg; animation-delay: 1.5s; }

.scattered-pdf {
    animation: pulse 2s ease-in-out infinite;
}

.pdf-1 { animation-delay: 0.3s; }
.pdf-2 { animation-delay: 0.6s; }
.pdf-3 { animation-delay: 0.9s; }

@media (prefers-reduced-motion: reduce) {
    .chaos-elements > *,
    .scattered-pdf {
        animation: none;
    }
}