/* Shared Styles for Inner Pages */

.page-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: var(--spacing-xl);
    background: linear-gradient(180deg, #EFF6FF 0%, #FAFBFC 100%);
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--color-white);
    color: var(--color-primary);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--spacing-sm);
    border: 2px solid var(--color-border);
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-sm);
}

.page-description {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* Content Section */
.content-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-white);
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.tech-feature {
    background: var(--gradient-soft);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
    position: relative;
}

.tech-feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-number {
    position: absolute;
    top: -15px;
    left: var(--spacing-md);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.tech-feature h3 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.tech-feature p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* Tech Feature with Video */
.tech-feature-with-video {
    padding: 0;
}

.tech-feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    align-items: center;
}

.tech-feature-text {
    flex: 1;
}

.tech-feature-text h3 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.tech-feature-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.tech-feature-video {
    flex: 1;
}

.tech-feature-video video {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Validation Section */
.validation-section {
    padding: var(--spacing-xl) 0;
    background: var(--gradient-soft);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat-item {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.stat-item p {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    background: var(--gradient-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--color-bg-accent) 0%, var(--color-bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.gallery-info {
    padding: var(--spacing-md);
}

.gallery-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.gallery-info p {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-md) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 52%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 52%;
}

.timeline-content {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border: 4px solid var(--color-white);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--color-bg-accent);
    z-index: 2;
}

/* Market Grid */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.market-card {
    background: var(--gradient-soft);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.market-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.market-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.market-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.market-card ul {
    list-style: none;
    padding: 0;
}

.market-card li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border);
}

.market-card li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tech-grid,
    .stats-grid,
    .gallery-grid,
    .market-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-feature-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .tech-feature-text h3 {
        margin-top: 0;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
    }
    
    .timeline-marker {
        left: 20px;
    }
}
