/* d:\Programming\urbandesignresume\pages\tutstud\css\style.css */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --text-color: #333;
    --text-light: #fff;
    --accent-color: #764ba2;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background: #000;
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

#bg-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -2;
    object-fit: cover;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Utilities */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

/* Main Container */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
}

/* Landing Page */
#landing-page {
    text-align: center;
    padding: 60px 40px;
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    /* Glass Background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

h1.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #a1c4fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

}

p.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Subtle border for glass effect */
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-student {
    background: rgba(102, 126, 234, 0.3);
    /* Semi-transparent blue */
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.btn-tutor {
    background: rgba(255, 154, 158, 0.25);
    /* Semi-transparent pink */
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.2);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(1px);
}

/* Forms */
#form-container {
    width: 100%;
    max-width: 500px;
}

.form-card {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ddd;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #a1c4fd;
    background: rgba(0, 0, 0, 0.4);
}

button[type="submit"] {
    width: 100%;
    margin-top: 20px;
    background: var(--primary-gradient);
}

/* Matching Screen */
#matching-screen {
    text-align: center;
}

.loader {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Session Interface */
#session-interface {
    display: grid;
    grid-template-rows: auto 1fr;
    width: 95vw;
    height: 90vh;
    gap: 20px;
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px;
}

#timer-display {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: monospace;
    color: #ff9a9e;
}

#end-session-btn {
    background: #ff4b4b;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.session-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    height: 100%;
    overflow: hidden;
}

.panel {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

/* Panel 1: Question */
.question-content {
    margin-top: 10px;
}

.question-title {
    color: #a1c4fd;
    margin-bottom: 10px;
}

.question-desc {
    line-height: 1.6;
    color: #eee;
}

/* Panel 2: Search */
.search-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 3px solid #667eea;
}

.search-title {
    color: #89b8ff;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    text-decoration: none;
}

.search-url {
    color: #81e6d9;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.search-snippet {
    color: #ccc;
    font-size: 0.9rem;
}

/* Panel 3: Chat */
.chat-window {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.msg-left {
    background: rgba(255, 255, 255, 0.15);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.msg-right {
    background: var(--primary-gradient);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
}

.chat-input-area button {
    width: auto;
    margin-top: 0;
    padding: 0 20px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    text-align: center;
    padding: 40px;
    max-width: 400px;
}

/* Responsive */
@media (max-width: 900px) {
    .session-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
    }

    #session-interface {
        height: auto;
        display: block;
        padding-bottom: 60px;
        /* Space for fixed chat if needed */
    }

    .panel {
        height: auto;
        max-height: 300px;
    }

    .chat-window {
        min-height: 300px;
    }
}