/* Mechanics Page Specific Styles */

/* Helpers specific to this page layout */
.md-grid-cols-2 {
    grid-template-columns: 1fr;
}

.md-flex-row {
    flex-direction: column;
}

.md-flex-row-reverse {
    flex-direction: column;
}

.max-w-800 {
    max-width: 800px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .md-grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .md-flex-row {
        flex-direction: row;
    }
    .md-flex-row-reverse {
        flex-direction: row-reverse;
    }
}

/* Sections */
.mechanics-main {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.mechanics-section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bg-surface-alt {
    background-color: rgba(18, 18, 26, 0.6);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

/* Typography specific */
.neon-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.text-accent {
    color: var(--accent);
    text-shadow: var(--shadow-neon-accent);
}

.lead-text {
    font-size: var(--font-size-lg);
    color: var(--gray-300);
    line-height: var(--line-height-base);
}

/* Feature Rows */
.feature-row > * {
    flex: 1;
}

.feature-image img {
    width: 100%;
    border-radius: var(--radius-sm);
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
    background-color: var(--gray-900);
}

/* Neon Frames */
.neon-frame {
    position: relative;
    padding: 3px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    z-index: 1;
}

.neon-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    border-radius: calc(var(--radius-md) + 2px);
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.neon-frame:hover::before {
    opacity: 1;
}

.primary-frame::before {
    background: linear-gradient(45deg, var(--primary), transparent, var(--primary));
    box-shadow: var(--shadow-neon-primary);
}

.accent-frame::before {
    background: linear-gradient(45deg, var(--accent), transparent, var(--accent));
    box-shadow: var(--shadow-neon-accent);
}

.warning-frame::before {
    background: linear-gradient(45deg, var(--warning), transparent, var(--warning));
    box-shadow: var(--shadow-neon-warning);
}

.danger-frame::before {
    background: linear-gradient(45deg, var(--danger), transparent, var(--danger));
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.5), 0 0 20px rgba(255, 0, 85, 0.3);
}

/* Hover Cards */
.neon-hover-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: none;
    border-left: 3px solid transparent;
}

.neon-hover-card.accent-hover:hover {
    border-left-color: var(--accent);
    box-shadow: var(--shadow-neon-accent);
    transform: translateX(5px);
}

.neon-hover-card.warning-hover:hover {
    border-left-color: var(--warning);
    box-shadow: var(--shadow-neon-warning);
    transform: translateX(5px);
}

.neon-hover-card.primary-hover:hover {
    border-left-color: var(--primary);
    box-shadow: var(--shadow-neon-primary);
    transform: translateY(-5px);
}

.audio-card {
    border-top: none;
    border-bottom: 3px solid var(--primary);
    padding: var(--space-8);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}