/* Landing Page Styles - Think.Digital Inspired with Electric Blue */

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

/* CSS Variables for Think.Digital Theme */
:root {
    --electric-blue: #0066FF;
    --dark-blue: #003399;
    --light-blue: #3385FF;
    --white: #FFFFFF;
    --light-grey: #F8F9FA;
    --medium-grey: #6C757D;
    --dark-grey: #343A40;
    --text-dark: #1A1A1A;
    --accent: #00E5FF;
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --shadow: rgba(0, 102, 255, 0.1);
    --border: #E9ECEF;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--white) 0%, var(--light-grey) 100%);
    min-height: 100vh;
}

/* Container */
.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.landing-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.main-logo {
    height: 40px;
    width: auto;
}

.admin-btn {
    background: var(--electric-blue);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--electric-blue);
}

.admin-btn:hover {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--shadow);
}

/* Main Content */
.landing-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.welcome-section {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.ai-greeting h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--electric-blue);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--electric-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.greeting-text {
    font-size: 1.5rem;
    color: var(--medium-grey);
    margin-bottom: 3rem;
    font-weight: 400;
}

.ai-avatar-section {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar-animation {
    display: inline-block;
    padding: 1rem;
}

.ai-avatar-gif {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.3);
    animation: avatarGlow 2s ease-in-out infinite alternate;
    transition: all 0.3s ease;
}

.ai-avatar-gif:hover {
    transform: scale(1.05);
}

@keyframes avatarGlow {
    0% {
        box-shadow: 0 0 30px rgba(0, 102, 255, 0.3);
        filter: brightness(1);
    }

    100% {
        box-shadow: 0 0 50px rgba(0, 102, 255, 0.6);
        filter: brightness(1.1);
    }
}

/* Question Section */
.question-section {
    margin-bottom: 3rem;
}

.input-container {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#user-question {
    width: 100%;
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1.1rem;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

#user-question:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.input-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.input-modes {
    display: flex;
    gap: 0.5rem;
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--medium-grey);
}

.mode-btn.active {
    border-color: var(--electric-blue);
    background: var(--electric-blue);
    color: var(--white);
}

.mode-btn:hover {
    border-color: var(--light-blue);
    transform: translateY(-1px);
}

.ask-button {
    background: linear-gradient(135deg, var(--electric-blue), var(--light-blue));
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
}

.ask-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.2);
}

.ask-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Voice Controls */
.voice-controls {
    margin-top: 1rem;
    padding: 2rem;
    background: var(--light-grey);
    border-radius: 12px;
    text-align: center;
}

.voice-controls.hidden {
    display: none;
}

.voice-animation {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
    margin-bottom: 1rem;
}

.voice-bar {
    width: 4px;
    background: var(--electric-blue);
    border-radius: 2px;
    animation: voiceBar 1.5s ease-in-out infinite;
}

.voice-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.voice-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.voice-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.voice-bar:nth-child(5) {
    animation-delay: 0.4s;
}

.voice-status {
    color: var(--medium-grey);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

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

.voice-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voice-btn.primary {
    background: var(--success);
    color: var(--white);
}

.voice-btn.danger {
    background: var(--danger);
    color: var(--white);
}

.voice-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Suggestions Section */
.suggestions-section {
    margin-top: 2rem;
}

.suggestions-section.hidden {
    display: none;
}

.specialist-recommendation,
.general-options {
    margin-bottom: 2rem;
}

.recommendation-header,
.options-header {
    text-align: center;
    margin-bottom: 2rem;
}

.recommendation-header h3,
.options-header h3 {
    font-size: 2rem;
    color: var(--electric-blue);
    margin-bottom: 0.5rem;
}

.recommendation-reason,
.options-header p {
    color: var(--medium-grey);
    font-size: 1.1rem;
}

/* Specialist Cards */
.specialist-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.specialist-card.recommended {
    border-color: var(--electric-blue);
    box-shadow: 0 8px 30px var(--shadow);
}

.specialist-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.specialist-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.specialist-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--electric-blue), var(--light-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 1.5rem;
}

.specialist-details {
    text-align: left;
}

.specialist-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.specialist-description {
    color: var(--medium-grey);
    font-size: 0.95rem;
    line-height: 1.4;
}

.connect-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    line-height: 1.3;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connect-btn.primary {
    background: linear-gradient(135deg, var(--electric-blue), var(--light-blue));
    color: var(--white);
    box-shadow: 0 4px 15px var(--shadow);
}

.connect-btn.secondary {
    background: var(--white);
    color: var(--electric-blue);
    border: 2px solid var(--electric-blue);
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

/* All Specialists Grid */
.all-specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Quick Specialists */
.quick-specialists {
    margin-top: 3rem;
    text-align: center;
}

.quick-specialists h3 {
    color: var(--medium-grey);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Navigation */
.suggestion-actions {
    text-align: center;
    margin-top: 2rem;
}

.back-btn {
    background: none;
    border: 2px solid var(--border);
    color: var(--medium-grey);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.back-btn:hover {
    border-color: var(--electric-blue);
    color: var(--electric-blue);
    transform: translateY(-1px);
}

/* Footer */
.landing-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
}

.landing-footer p {
    color: var(--medium-grey);
    font-size: 0.9rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.hidden {
    display: none;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 102, 255, 0.3);
    border-top: 4px solid var(--electric-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes voiceBar {

    0%,
    100% {
        height: 10px;
    }

    50% {
        height: 40px;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-greeting h1 {
        font-size: 2.5rem;
    }

    .greeting-text {
        font-size: 1.2rem;
    }

    .input-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .specialist-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .specialist-card .connect-btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    .specialist-info {
        flex-direction: column;
        text-align: center;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-logo {
        height: 30px;
    }
}