/* Component Styles: Reusable Patterns */
/* Content-First Refactor - Phase 4: User Story 2 */

/* CTA Buttons */
.cta-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: transparent;
    border: 2px solid #cc0000;
    color: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    margin: 0.5rem;
}

.cta-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #cc0000;
    transition: left 0.3s;
    z-index: -1;
}

.cta-primary:hover:before {
    left: 0;
}

.cta-primary:hover {
    animation: policeLights 1s infinite;
}

.booking-cta {
    padding: 0.6rem 1.8rem;
    background: transparent;
    border: 1px solid rgba(204, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: all 0.3s;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.booking-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(204, 0, 0, 0.2);
    transition: left 0.3s;
    z-index: -1;
}

.booking-cta:hover {
    border-color: #cc0000;
    color: #fff;
    box-shadow: 0 0 15px rgba(204, 0, 0, 0.3);
}

.booking-cta:hover::before {
    left: 0;
}

/* Memory Block */
.memory-block {
    background: rgba(0, 0, 0, 0.8);
    border-left: 4px solid #cc0000;
    padding: 2rem;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    transition: all 0.3s;
}

.memory-block:hover {
    background: rgba(20, 0, 0, 0.9);
    transform: translateX(10px);
}

.memory-block:before {
    content: 'MEMORY FRAGMENT';
    position: absolute;
    top: -10px;
    left: 20px;
    background: #cc0000;
    padding: 0.2rem 0.8rem;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    font-weight: 700;
}

.corrupt {
    color: #cc0000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Evidence Items */
.evidence-item {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(204, 0, 0, 0.2);
    padding: 2rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
}

.evidence-item:before {
    content: 'EVIDENCE';
    position: absolute;
    top: 0;
    right: 0;
    background: #cc0000;
    padding: 0.3rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    font-weight: 700;
}

.evidence-item:hover {
    border-color: #cc0000;
    transform: scale(1.05);
    background: rgba(30, 0, 0, 0.9);
    box-shadow:
        0 0 30px rgba(204, 0, 0, 0.5),
        inset 0 0 30px rgba(204, 0, 0, 0.1);
}

.evidence-item h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
}

.evidence-item:hover h3 {
    color: #cc0000;
    animation: glitchText 0.5s;
}

.evidence-item p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Personnel Files */
.personnel-file {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(204, 0, 0, 0.3);
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.3s;
}

.personnel-file:before {
    content: 'CLASSIFIED';
    position: absolute;
    top: 10px;
    right: 10px;
    color: #cc0000;
    font-weight: 700;
    letter-spacing: 0.2em;
    opacity: 0.3;
    font-size: 0.9rem;
}

.personnel-file:hover {
    background: rgba(30, 10, 10, 0.9);
    border-color: #cc0000;
}

.personnel-file h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #cc0000;
    margin-bottom: 0.5rem;
}

.personnel-file .subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.personnel-file .credentials {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Process Steps */
.process-step {
    text-align: center;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(204, 0, 0, 0.2);
    transition: all 0.3s;
    position: relative;
}

.process-step:hover {
    border-color: #cc0000;
    transform: translateY(-5px);
    background: rgba(30, 0, 0, 0.9);
    box-shadow: 0 10px 30px rgba(204, 0, 0, 0.3);
}

.step-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: #cc0000;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
}

.process-step p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* FAQ Items */
.faq-item {
    background: rgba(20, 20, 20, 0.6);
    border-left: 3px solid #cc0000;
    padding: 2rem;
    transition: all 0.3s;
}

.faq-item:hover {
    background: rgba(30, 10, 10, 0.8);
    transform: translateX(5px);
}

.faq-question {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.faq-answer {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Form Elements */
.form-group {
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(204, 0, 0, 0.3);
    color: #fff;
    transition: all 0.3s;
    font-family: 'Barlow', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: #cc0000;
    background: rgba(30, 0, 0, 0.9);
    box-shadow: 0 0 20px rgba(204, 0, 0, 0.3);
}

.form-warning {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 100, 100, 0.9);
    font-style: italic;
}

/* Memory Recovery Form */
.memory-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.corrupted-header {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(204, 0, 0, 0.1);
    border: 1px solid rgba(204, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.corrupted-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(204, 0, 0, 0.2), transparent);
    animation: scan 3s infinite;
}

.memory-input {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid rgba(204, 0, 0, 0.3);
    color: #fff;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
    font-family: 'Barlow', sans-serif;
}

.memory-input::placeholder {
    color: rgba(204, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.memory-input:focus {
    outline: none;
    border-color: #cc0000;
    background: rgba(30, 0, 0, 0.9);
    box-shadow: 0 0 30px rgba(204, 0, 0, 0.3);
    transform: scale(1.02);
}

.recover-button {
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: transparent;
    border: 2px solid #cc0000;
    color: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    margin-bottom: 2rem;
}

.recover-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #cc0000;
    transition: left 0.3s;
    z-index: -1;
}

.recover-button:hover:before {
    left: 0;
}

.recover-button:hover {
    animation: policeLights 1s infinite;
}

.system-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.recovery-status {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    text-align: center;
}

.success-msg {
    color: #00ff00;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

/* Progressive Disclosure Accordion Styles */
.accordion-trigger {
    cursor: pointer;
    position: relative;
    padding-right: 40px;
    user-select: none;
    transition: color 0.3s ease;
}

.accordion-trigger:hover {
    color: #cc0000;
}

.accordion-trigger::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23cc0000' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.accordion-trigger.expanded::after {
    transform: translateY(-50%) rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

.accordion-content.expanded {
    max-height: 2000px;
    opacity: 1;
    margin-top: 1rem;
}

/* Sticky Header Styles */
.booking-bar.sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease;
}

/* Process Steps Accordion Specific */
.process-step {
    cursor: pointer;
    transition: all 0.3s ease;
}

.process-step.accordion-trigger {
    position: relative;
    padding-right: 40px;
}

.process-step .process-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    margin-top: 0;
}

.process-step.expanded .process-content {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
}

/* Evidence Section Accordion */
.evidence-item {
    cursor: pointer;
}

.evidence-item.accordion-trigger:before {
    content: 'EVIDENCE';
    position: absolute;
    top: 0;
    right: 0;
    background: #cc0000;
    padding: 0.3rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    z-index: 1;
}

.evidence-item.accordion-trigger:hover:before {
    content: 'EVIDENCE';
    position: absolute;
    top: 0;
    right: 0;
    background: #cc0000;
    padding: 0.3rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    z-index: 1;
}

.evidence-item .evidence-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.evidence-item.expanded .evidence-content {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
}

/* Creator Profiles Accordion */
.personnel-file {
    cursor: pointer;
}

.personnel-file .credentials {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.personnel-file.expanded .credentials {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
}

/* FAQ Accordion Enhanced */
.faq-item {
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.faq-item.expanded .faq-answer {
    max-height: 500px;
    opacity: 1;
    margin-top: 0.5rem;
}

/* Scan Line Effects */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to bottom,
        transparent,
        rgba(204, 0, 0, 0.2) 20%,
        rgba(204, 0, 0, 0.3) 50%,
        rgba(204, 0, 0, 0.2) 80%,
        transparent);
    animation: scanline 30s ease-in-out infinite;
    animation-delay: 5s;
    pointer-events: none;
    z-index: 100;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

.scanline-secondary {
    height: 1px;
    background: linear-gradient(to bottom,
        transparent,
        rgba(204, 0, 0, 0.1) 30%,
        rgba(204, 0, 0, 0.15) 50%,
        rgba(204, 0, 0, 0.1) 70%,
        transparent);
    animation-delay: 15s;
    animation-duration: 45s;
    opacity: 0.7;
}

.scanline::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom,
        rgba(204, 0, 0, 0.05),
        transparent);
    filter: blur(3px);
}

/* Recovery Prompt Styles (Phase 5: localStorage Form Recovery) */
.recovery-prompt {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    max-width: 500px;
    width: 90%;
    animation: slideDown 0.3s ease;
}

.recovery-content {
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid #cc0000;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 40px rgba(204, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.recovery-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.6;
}

.recovery-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.recovery-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid #cc0000;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Barlow', sans-serif;
}

.recovery-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204, 0, 0, 0.4);
}

.recovery-btn-primary {
    background: #cc0000;
}

.recovery-btn-primary:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.recovery-btn-secondary {
    border-color: rgba(204, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.7);
}

.recovery-btn-secondary:hover {
    border-color: #cc0000;
    color: #fff;
    background: transparent;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
