/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
}

/* Header and Navigation */
.header {
    background: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e50914;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #e50914;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Video Cards */
.video-card {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(229, 9, 20, 0.1) 0%, 
        rgba(229, 9, 20, 0.05) 50%, 
        transparent 100%);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(229, 9, 20, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.play-button:hover {
    background: #e50914;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 1.5rem;
    color: white;
}

.video-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #fff;
}

.video-meta {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.video-description {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.4;
}

.age-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.video-duration {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.genre-tag {
    display: inline-block;
    background: rgba(229, 9, 20, 0.2);
    color: #ff6b6b;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Age Gate Styles */
.age-gate {
    border: 2px dashed #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    position: relative;
    overflow: hidden;
}

.age-gate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 15px,
        rgba(255, 107, 107, 0.1) 15px,
        rgba(255, 107, 107, 0.1) 30px
    );
    pointer-events: none;
    z-index: 1;
}

.age-gate-content {
    position: relative;
    z-index: 2;
}

.age-gate .video-thumbnail {
    filter: blur(10px) grayscale(80%);
    transition: filter 0.3s;
}

.age-gate.restricted {
    opacity: 0.7;
    pointer-events: none;
}

.age-gate.accessible {
    border-color: #51cf66;
    background: rgba(81, 207, 102, 0.1);
}

.age-gate.accessible::before {
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 15px,
        rgba(81, 207, 102, 0.1) 15px,
        rgba(81, 207, 102, 0.1) 30px
    );
}

.age-gate.accessible .video-thumbnail {
    filter: none;
}

.age-gate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    text-align: center;
    z-index: 3;
    transition: opacity 0.3s;
}

.age-gate.accessible .age-gate-overlay {
    opacity: 0;
    pointer-events: none;
}

.age-gate-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Status Panel */
.verification-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 250px;
    border: 1px solid #333;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-badge.verified {
    background: #51cf66;
    color: white;
}

.status-badge.unverified {
    background: #ff6b6b;
    color: white;
}

.status-badge.unknown {
    background: #6c757d;
    color: white;
}

.tokn-verify-button {
    margin: 1rem 0;
}

/* Demo Controls */
.demo-controls {
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
    border: 1px solid #333;
}

.demo-controls h3 {
    color: #e50914;
    margin-bottom: 1rem;
}

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

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #e50914;
    color: white;
}

.btn-primary:hover {
    background: #d40813;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

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

/* Modal Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s;
    border: 1px solid #333;
}

.overlay.active .modal {
    transform: scale(1);
}

/* Console Output */
.console-output {
    background: #0d1117;
    color: #58a6ff;
    font-family: 'Monaco', 'Menlo', monospace;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.9rem;
    border: 1px solid #21262d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .verification-status {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 2rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .control-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .content-grid {
        gap: 1rem;
    }
    
    .video-thumbnail {
        height: 150px;
        font-size: 2rem;
    }
    
    .play-button {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}