/*
 * I SEE YOU - GAY DATING PLATFORM
 * Neon-tech aesthetic with ritual animation system
 * Based on Avatar's "I See You" philosophy
 */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
    cursor: default;
}

.hidden {
    display: none !important;
}

/* ===== RITUAL ANIMATION SYSTEM ===== */
#ritual-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    pointer-events: none;
}

.ritual-head {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid #00eaff;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 234, 255, 0.1) 0%, transparent 70%);
    box-shadow: 
        0 0 20px rgba(0, 234, 255, 0.6),
        inset 0 0 20px rgba(0, 234, 255, 0.2);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#head-left {
    top: 50px;
    left: 50px;
}

#head-right {
    top: 50px;
    right: 50px;
}

.ritual-head::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 1px solid #00eaff;
    border-radius: 50%;
    opacity: 0.7;
}

.ritual-head::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #00eaff;
    border-radius: 50%;
    opacity: 0.8;
    box-shadow: 0 0 10px #00eaff;
}

#convergence-point {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 20px #ffffff;
}

#recognition-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border: 2px solid rgba(0, 234, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(0, 234, 255, 0.05) 30%,
        transparent 70%
    );
}

/* Ritual Animation States */
.ritual-head.materializing {
    opacity: 1;
    transform: scale(1);
}

.ritual-head.converging {
    transition: all 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ritual-head.returning {
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ritual-head.guardian {
    opacity: 0.3;
    transform: scale(0.7);
}

#recognition-wave.expanding {
    animation: waveExpansion 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes waveExpansion {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        width: 200vw;
        height: 200vh;
        opacity: 0;
    }
}

/* ===== MAIN PLATFORM STYLES ===== */
#main-platform {
    min-height: 100vh;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#main-platform.revealed {
    opacity: 1;
}

/* ===== HEADER STYLES ===== */
.hero-header {
    width: 100%;
    padding: 80px 20px 60px;
    text-align: center;
    background: transparent;
    position: relative;
    z-index: 10;
}

.header-inner {
    display: inline-block;
    padding: 20px 40px;
}

.site-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 72px;
    letter-spacing: 2px;
    color: #00eaff;
    text-shadow: 
        0 0 12px rgba(0, 234, 255, 0.75),
        0 0 24px rgba(0, 234, 255, 0.45);
    margin-bottom: 25px;
    cursor: default;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav ul li {
    display: inline-block;
    margin: 0 18px;
}

.main-nav ul li a {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    color: #d0faff;
    text-decoration: none;
    transition: all 0.25s ease;
    padding: 8px 16px;
    border-radius: 4px;
}

.main-nav ul li a:hover {
    color: #00eaff;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.6);
    background: rgba(0, 234, 255, 0.1);
}

/* ===== CONTENT AREA ===== */
#content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page-content.active {
    display: block;
}

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

/* ===== HOME PAGE ===== */
.hero-section {
    text-align: center;
    margin: 60px 0;
}

.hero-subtitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.hero-description {
    font-size: 18px;
    color: #d0faff;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== USER GRID ===== */
.user-grid, .browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.user-card {
    background: rgba(26, 31, 36, 0.8);
    border: 1px solid rgba(0, 234, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-card:hover {
    border-color: #00eaff;
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.3);
    transform: translateY(-2px);
}

.user-card:hover::before {
    opacity: 1;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 2px solid rgba(0, 234, 255, 0.3);
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 8px;
    text-align: center;
}

.user-info p {
    color: #d0faff;
    font-size: 14px;
    text-align: center;
    margin-bottom: 12px;
}

.user-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.interest-tag {
    background: rgba(0, 234, 255, 0.2);
    color: #00eaff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    border: 1px solid rgba(0, 234, 255, 0.3);
}

/* ===== VIDEO GRID ===== */
.featured-videos {
    margin: 60px 0;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.video-card {
    background: rgba(26, 31, 36, 0.8);
    border: 1px solid rgba(0, 234, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    border-color: #00eaff;
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.3);
    transform: translateY(-2px);
}

.video-thumbnail {
    width: 100%;
    height: 180px;
    background: #1a1f24;
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 234, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    transition: all 0.3s ease;
}

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

.video-info {
    padding: 16px;
}

.video-info h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #d0faff;
    font-size: 12px;
}

/* ===== BROWSE PAGE ===== */
.browse-controls {
    background: rgba(26, 31, 36, 0.8);
    border: 1px solid rgba(0, 234, 255, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 234, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
}

.search-bar input:focus {
    outline: none;
    border-color: #00eaff;
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.3);
}

.search-bar button, .filters select {
    padding: 12px 20px;
    background: rgba(0, 234, 255, 0.2);
    border: 1px solid #00eaff;
    border-radius: 8px;
    color: #00eaff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar button:hover, .filters select:hover {
    background: rgba(0, 234, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.3);
}

.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filters select {
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

/* ===== UPLOAD PAGE ===== */
.upload-container {
    max-width: 600px;
    margin: 0 auto;
}

.page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.upload-area {
    border: 2px dashed rgba(0, 234, 255, 0.5);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #00eaff;
    background: rgba(0, 234, 255, 0.05);
}

.upload-area.dragover {
    border-color: #00eaff;
    background: rgba(0, 234, 255, 0.1);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.video-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.video-details input, .video-details textarea {
    padding: 12px 16px;
    background: rgba(26, 31, 36, 0.8);
    border: 1px solid rgba(0, 234, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    resize: vertical;
}

.video-details input:focus, .video-details textarea:focus {
    outline: none;
    border-color: #00eaff;
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.3);
}

.privacy-settings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.privacy-settings label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d0faff;
    cursor: pointer;
}

.privacy-settings input[type="radio"] {
    accent-color: #00eaff;
}

#upload-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #00eaff 0%, #0099cc 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 234, 255, 0.4);
}

/* ===== MESSAGES PAGE ===== */
.messages-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    height: 600px;
}

.conversations-list {
    background: rgba(26, 31, 36, 0.8);
    border: 1px solid rgba(0, 234, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    overflow-y: auto;
}

.conversations-list h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 18px;
}

.conversation-item {
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.conversation-item:hover {
    background: rgba(0, 234, 255, 0.1);
}

.conversation-item.active {
    background: rgba(0, 234, 255, 0.2);
    border: 1px solid rgba(0, 234, 255, 0.5);
}

.chat-area {
    background: rgba(26, 31, 36, 0.8);
    border: 1px solid rgba(0, 234, 255, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

#chat-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 234, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
}

#chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.message {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.message.own {
    flex-direction: row-reverse;
}

.message-content {
    background: rgba(0, 234, 255, 0.2);
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 70%;
    color: #ffffff;
}

.message.own .message-content {
    background: rgba(0, 234, 255, 0.4);
}

#chat-input-area {
    padding: 20px;
    border-top: 1px solid rgba(0, 234, 255, 0.2);
    display: flex;
    gap: 12px;
}

#message-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 234, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
}

#send-message {
    padding: 12px 20px;
    background: #00eaff;
    border: none;
    border-radius: 8px;
    color: #000000;
    cursor: pointer;
    font-weight: 600;
}

/* ===== PROFILE PAGE ===== */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
}

.profile-image {
    text-align: center;
}

.profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #00eaff;
    object-fit: cover;
}

#change-photo {
    margin-top: 12px;
    padding: 8px 16px;
    background: rgba(0, 234, 255, 0.2);
    border: 1px solid #00eaff;
    border-radius: 6px;
    color: #00eaff;
    cursor: pointer;
}

.profile-info h2 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 8px;
}

.profile-info p {
    color: #d0faff;
    margin-bottom: 16px;
}

.profile-stats {
    display: flex;
    gap: 24px;
}

.profile-stats span {
    color: #d0faff;
}

.profile-stats strong {
    color: #00eaff;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-section h3 {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 20px;
}

#profile-bio {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    background: rgba(26, 31, 36, 0.8);
    border: 1px solid rgba(0, 234, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    resize: vertical;
}

.interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.interest-tag.removable {
    cursor: pointer;
    position: relative;
}

.interest-tag.removable:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
    color: #ff0000;
}

#new-interest {
    padding: 8px 12px;
    background: rgba(26, 31, 36, 0.8);
    border: 1px solid rgba(0, 234, 255, 0.3);
    border-radius: 6px;
    color: #ffffff;
    max-width: 200px;
}

.user-videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

#save-profile {
    padding: 16px 32px;
    background: linear-gradient(135deg, #00eaff 0%, #0099cc 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.3s ease;
}

#save-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 234, 255, 0.4);
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(26, 31, 36, 0.95);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid rgba(0, 234, 255, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.user-profile-modal {
    max-width: 600px;
}

.video-modal {
    max-width: 800px;
}

.close {
    color: #d0faff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #00eaff;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.auth-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form input {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 234, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
}

.auth-form input:focus {
    outline: none;
    border-color: #00eaff;
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.3);
}

.auth-form button {
    padding: 14px;
    background: linear-gradient(135deg, #00eaff 0%, #0099cc 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 234, 255, 0.4);
}

.auth-form p {
    text-align: center;
    color: #d0faff;
    margin-top: 20px;
}

.auth-form a {
    color: #00eaff;
    text-decoration: none;
}

.auth-form a:hover {
    text-decoration: underline;
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-animation {
    text-align: center;
}

.loading-text {
    color: #00eaff;
    font-size: 18px;
    font-weight: 300;
    animation: pulse 2s infinite;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .site-title {
        font-size: 48px;
    }
    
    .main-nav ul li {
        margin: 0 10px;
    }
    
    .main-nav ul li a {
        font-size: 16px;
    }
    
    .user-grid, .browse-grid, .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .messages-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .conversations-list {
        height: 200px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .search-bar {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-header {
        padding: 40px 10px 30px;
    }
    
    .site-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .user-grid, .browse-grid, .video-grid {
        grid-template-columns: 1fr;
    }
    
    #content-area {
        padding: 0 10px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.transition { transition: all 0.3s ease; }

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 31, 36, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 234, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 234, 255, 0.5);
}

/* ===== SELECTION STYLING ===== */
::selection {
    background: rgba(0, 234, 255, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(0, 234, 255, 0.3);
    color: #ffffff;
}