/* Zkure - Page Specific Styles */

/* ===== Standoff Visualization ===== */
.standoff-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.standoff-party {
    flex: 1;
    max-width: 350px;
    padding: 2rem;
    background: var(--color-bg-card);
    border-radius: 16px;
    border: 2px solid var(--color-border);
    transition: all 0.3s ease;
}

.standoff-party:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.standoff-party.hospital {
    border-color: rgba(16, 185, 129, 0.5);
}

.standoff-party.hospital:hover {
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.2);
}

.standoff-party.vendor {
    border-color: rgba(139, 92, 246, 0.5);
}

.standoff-party.vendor:hover {
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

.standoff-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    padding: 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hospital .standoff-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.vendor .standoff-icon {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.standoff-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.standoff-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.standoff-fears {
    list-style: none;
    font-size: 0.9rem;
}

.standoff-fears li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-light);
}

.standoff-fears li::before {
    content: "!";
    position: absolute;
    left: 0;
    width: 18px;
    height: 18px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.standoff-lock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.lock-icon {
    width: 80px;
    height: 80px;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lockPulse 2s ease-in-out infinite;
}

.lock-icon svg {
    width: 40px;
    height: 40px;
    color: #ef4444;
}

.lock-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes lockPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(239, 68, 68, 0);
    }
}

/* ===== Workflow Steps ===== */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 3rem 0;
    position: relative;
}

.workflow-step {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    position: relative;
    transition: all 0.3s ease;
}

.workflow-step:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.workflow-step::after {
    content: "";
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid var(--color-primary);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    opacity: 0.5;
}

.workflow-step:last-child::after {
    display: none;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-bg);
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.step-description {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.step-tag {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== Demo Styles ===== */
.demo-container {
    display: grid;
    grid-template-columns: 1fr 200px 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
    min-height: 500px;
}

.demo-panel {
    background: var(--color-bg-card);
    border-radius: 16px;
    border: 2px solid var(--color-border);
    overflow: hidden;
}

.demo-panel.hospital {
    border-color: rgba(16, 185, 129, 0.4);
}

.demo-panel.vendor {
    border-color: rgba(139, 92, 246, 0.4);
}

.panel-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hospital .panel-header {
    background: rgba(16, 185, 129, 0.1);
}

.vendor .panel-header {
    background: rgba(139, 92, 246, 0.1);
}

.panel-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hospital .panel-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.vendor .panel-icon {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.panel-title {
    font-weight: 700;
    font-size: 1rem;
}

.panel-subtitle {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.panel-content {
    padding: 1.5rem;
}

/* Form Styles */
.demo-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.form-group input {
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.form-group input::placeholder {
    color: var(--color-text-muted);
}

.btn-diagnose {
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: var(--color-bg);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-diagnose:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
}

.btn-diagnose:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Result Display */
.result-display {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    display: none;
}

.result-display.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

.result-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.result-value.high-risk {
    color: #ef4444;
}

.result-value.moderate-risk {
    color: #f59e0b;
}

.result-value.low-risk {
    color: #10b981;
}

.result-confidence {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

/* Center Animation Column */
.proof-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem 0;
}

.proof-track {
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(16, 185, 129, 0.3) 0%,
        rgba(6, 182, 212, 0.5) 50%,
        rgba(139, 92, 246, 0.3) 100%);
    border-radius: 2px;
    position: relative;
}

.proof-packet {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.proof-packet.animate {
    opacity: 1;
    top: calc(100% - 40px);
}

.proof-packet svg {
    width: 20px;
    height: 20px;
    color: var(--color-bg);
}

.flow-labels {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    pointer-events: none;
}

.flow-label {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    text-align: center;
    background: var(--color-bg-card);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Vendor Log */
.vendor-log {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.log-entry {
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    animation: slideIn 0.3s ease;
}

.log-entry:last-child {
    border-bottom: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.log-time {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-family: monospace;
}

.log-message {
    font-size: 0.85rem;
    color: var(--color-text);
    margin-top: 0.25rem;
}

.log-hash {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--color-primary);
    word-break: break-all;
}

/* Billing Counter */
.billing-section {
    padding: 1rem;
    background: var(--color-bg);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.billing-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.billing-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
    font-family: monospace;
}

.billing-count {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Redacted Data Section */
.redacted-section {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.05);
    border: 1px dashed rgba(239, 68, 68, 0.3);
    border-radius: 8px;
}

.redacted-title {
    font-size: 0.75rem;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.redacted-data {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    user-select: none;
}

/* Transmission Comparison */
.transmission-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: var(--color-bg-card);
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.transmission-column h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.transmission-column.transmitted h4 {
    color: #10b981;
}

.transmission-column.hidden h4 {
    color: #ef4444;
}

.transmission-list {
    list-style: none;
}

.transmission-list li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.transmission-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.transmitted .transmission-list li::before {
    background: #10b981;
}

.hidden .transmission-list li::before {
    background: #ef4444;
}

/* Business Model Cards */
.business-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.business-card {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.business-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.business-card-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.business-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-bg);
}

.business-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.business-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.business-card-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Technical Specs */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.specs-table th,
.specs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.specs-table th {
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.specs-table td {
    color: var(--color-text);
    font-size: 1rem;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .demo-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .proof-flow {
        flex-direction: row;
        height: 100px;
        padding: 0 1rem;
    }

    .proof-track {
        width: 100%;
        height: 4px;
    }

    .workflow-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow-step::after {
        display: none;
    }

    .standoff-container {
        flex-direction: column;
    }

    .standoff-party {
        max-width: 100%;
    }

    .business-cards {
        grid-template-columns: 1fr;
    }

    .transmission-comparison {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .workflow-steps {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #10b981;
    margin-top: 1rem;
}

.privacy-badge svg {
    width: 14px;
    height: 14px;
}

/* ===== How To Section ===== */
.how-to-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-bg-card);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    padding: 2rem;
}

.how-to-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.how-to-title svg {
    color: var(--color-primary);
}

.how-to-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.how-to-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.how-to-step .step-number {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-bg);
    flex-shrink: 0;
    margin-bottom: 0;
}

.how-to-step .step-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.how-to-step .step-content strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
}

.how-to-step .step-content span {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .how-to-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .how-to-steps {
        grid-template-columns: 1fr;
    }

    .how-to-step {
        flex-direction: row;
        align-items: flex-start;
    }

    .how-to-box {
        padding: 1.5rem;
    }
}
