/* Privacy Page - Cyberpunk/FOSS Terminal Aesthetic */

/* Global page background and font for privacy page */
body.privacy-terminal-page {
    background: #0a0a0a !important;
    color: #00ff41 !important;
    font-family: 'Fira Code', 'SF Mono', Monaco, 'Cascadia Code', monospace !important;
}

/* Override only page structure elements, not terminal content */
body.privacy-terminal-page > header,
body.privacy-terminal-page > nav,
body.privacy-terminal-page > footer,
body.privacy-terminal-page > main,
body.privacy-terminal-page .container:not(.privacy-terminal *),
body.privacy-terminal-page .content:not(.privacy-terminal *) {
    background: transparent !important;
    color: #00ff41 !important;
}

/* Override navigation styles */
body.privacy-terminal-page nav,
body.privacy-terminal-page .nav,
body.privacy-terminal-page header,
body.privacy-terminal-page .header {
    background: #0a0a0a !important;
    border-bottom: 1px solid #00ff41 !important;
}

body.privacy-terminal-page nav a,
body.privacy-terminal-page .nav a,
body.privacy-terminal-page header a,
body.privacy-terminal-page .header a {
    color: #00ff41 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

body.privacy-terminal-page nav a:hover,
body.privacy-terminal-page .nav a:hover,
body.privacy-terminal-page header a:hover,
body.privacy-terminal-page .header a:hover {
    color: #ff6b6b !important;
    text-shadow: 0 0 5px rgba(255, 107, 107, 0.5) !important;
}

/* Override footer styles */
body.privacy-terminal-page footer,
body.privacy-terminal-page .footer {
    background: #0a0a0a !important;
    border-top: 1px solid #00ff41 !important;
    color: #00ff41 !important;
}

body.privacy-terminal-page footer a,
body.privacy-terminal-page .footer a {
    color: #00ff41 !important;
}

body.privacy-terminal-page footer a:hover,
body.privacy-terminal-page .footer a:hover {
    color: #ff6b6b !important;
}

/* Add terminal grid overlay */
body.privacy-terminal-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(0, 255, 65, 0.03) 100%),
        linear-gradient(transparent 98%, rgba(0, 255, 65, 0.03) 100%);
    background-size: 3px 3px;
    pointer-events: none;
    z-index: -1;
}

/* Privacy terminal container - preserve all internal styling */
.privacy-terminal {
    background: #0a0a0a;
    color: #00ff41;
    font-family: 'Fira Code', 'SF Mono', Monaco, 'Cascadia Code', monospace;
    min-height: 100vh;
    padding: 1rem;
    position: relative;
    overflow-x: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.privacy-terminal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(0, 255, 65, 0.03) 100%),
        linear-gradient(transparent 98%, rgba(0, 255, 65, 0.03) 100%);
    background-size: 3px 3px;
    pointer-events: none;
    z-index: 1;
}

.terminal-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.terminal-title-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.terminal-prompt {
    color: #ff6b6b;
    flex-shrink: 0;
}

.terminal-title {
    color: #00ff41;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.privacy-status {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.status-indicator {
    padding: 0.25rem 0.75rem;
    border: 1px solid #00ff41;
    border-radius: 4px;
    font-size: 0.875rem;
    background: rgba(0, 255, 65, 0.1);
    animation: pulse 2s infinite;
}

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

.terminal-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
}

.section {
    margin-bottom: 3rem;
    border-left: 2px solid #00ff41;
    padding-left: 1.5rem;
    position: relative;
}

.section::before {
    content: '▶';
    position: absolute;
    left: -8px;
    top: 0;
    color: #00ff41;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.section h2 {
    color: #ff6b6b;
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.section li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.5rem;
}

.section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #00ff41;
}

.data-demo {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid #00ff41;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
    position: relative;
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.demo-column h4 {
    color: #ff6b6b;
    margin: 0 0 1rem 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.collect-yes {
    border-left: 3px solid #ff6b6b;
    padding-left: 1rem;
}

.collect-no {
    border-left: 3px solid #00ff41;
    padding-left: 1rem;
}

.terminal-command {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.terminal-command:hover {
    border-color: #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.command-prompt {
    color: #ff6b6b;
}

.command-text {
    color: #00ff41;
    margin-left: 1rem;
}

.command-output {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
    color: #888;
    display: none;
}

.command-output.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


.crypto-hash {
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    color: #888;
    word-break: break-all;
    background: #1a1a1a;
    padding: 0.5rem;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.highlight-green {
    color: #00ff41;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.highlight-red {
    color: #ff6b6b;
    text-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
}

/* Session Data Display Styles */
.session-summary, .data-summary, .privacy-signals, .browser-info, .recent-activity, .raw-data {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid #333;
    border-radius: 4px;
}

.session-summary h4, .data-summary h4, .privacy-signals h4, .browser-info h4, .recent-activity h4, .raw-data h4 {
    color: #ff6b6b;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.session-controls {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn {
    background: #1a1a1a;
    color: #00ff41;
    border: 1px solid #00ff41;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #00ff41;
    color: #0a0a0a;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

.btn-warning {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.btn-warning:hover {
    background: #ff6b6b;
    color: #0a0a0a;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

#session-data-content pre {
    background: #000;
    color: #00ff41;
    padding: 1rem;
    border: 1px solid #00ff41;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.75rem;
    line-height: 1.4;
    max-height: 300px;
    overflow-y: auto;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .privacy-terminal {
        padding: 1rem;
    }
    
    .terminal-title {
        font-size: 1.2rem;
    }
    
    .terminal-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .privacy-status {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (min-width: 769px) {
    .privacy-terminal {
        padding: 2rem;
    }
}