/* Hovercam AI - Main Stylesheet */
/* Optimized for 75" touch panels and K-12 classroom use */

:root {
    --hovercam-orange: #ff5f1f;
    --hovercam-dark: #cc4a18;
    --hovercam-light: #ff8c5a;
    --background-light: #f8f9fa;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --white: #ffffff;
    --success: #28a745;
    --warning: #ffc107;
    --info: #17a2b8;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --touch-target-min: 48px; /* Minimum touch target size */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Top Navigation Bar */
.top-nav {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}

.nav-container {
    max-width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.nav-logo {
    height: 35px;
    width: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: var(--touch-target-min);
}

.nav-link:hover {
    background: var(--background-light);
    color: var(--hovercam-orange);
}

.nav-login {
    background: var(--hovercam-orange);
    color: var(--white);
    padding: 10px 20px;
}

.nav-login:hover {
    background: var(--hovercam-dark);
    color: var(--white);
}

/* Main Content */
.main-content {
    margin-top: 60px;
    padding: 20px;
    min-height: calc(100vh - 60px);
}

/* AI Section */
.ai-section {
    padding: 40px 20px;
    text-align: center;
}

.ai-container {
    max-width: 900px;
    margin: 0 auto;
}

.main-logo {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
}

.welcome-text {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-weight: 600;
}

/* AI Prompt Box */
.ai-prompt-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: var(--white);
    border-radius: 50px;
    padding: 8px;
    box-shadow: var(--shadow-md);
    min-height: 70px;
}

.ai-prompt-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 20px 30px;
    font-size: 18px;
    background: transparent;
    color: var(--text-primary);
}

.ai-prompt-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.ai-prompt-button {
    background: var(--hovercam-orange);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.ai-prompt-button:hover {
    background: var(--hovercam-dark);
    transform: scale(1.05);
}

.ai-prompt-button:active {
    transform: scale(0.95);
}

/* Quick Prompts */
.quick-prompts {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-prompt-btn {
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--hovercam-orange);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: var(--touch-target-min);
    font-weight: 500;
}

.quick-prompt-btn:hover {
    background: var(--hovercam-orange);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-prompt-btn:active {
    transform: translateY(0);
}

/* Toolbox Section */
.toolbox-section {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    margin: 20px;
}

.toolbox-title {
    font-size: 28px;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

/* Toolbox Grid */
.toolbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Tool Cards */
.tool-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 3px solid transparent;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--hovercam-orange);
}

.tool-card:active {
    transform: scale(0.98);
}

.tool-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tool-card.disabled:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: transparent;
}

.tool-icon {
    font-size: 48px;
    color: var(--hovercam-orange);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 95, 31, 0.1);
    border-radius: 50%;
}

.tool-name {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.tool-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.tool-status {
    position: absolute;
    top: 15px;
    right: 15px;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.ready {
    background: var(--success);
    color: var(--white);
}

.status-badge.coming-soon {
    background: var(--warning);
    color: var(--text-primary);
}

.more-tools {
    background: linear-gradient(135deg, rgba(255, 95, 31, 0.1), rgba(255, 95, 31, 0.05));
    border: 2px dashed var(--hovercam-orange);
}

.more-tools .tool-icon {
    background: var(--white);
    color: var(--hovercam-orange);
}

/* Module Container */
.module-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.module-header {
    background: var(--white);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.module-close {
    background: var(--hovercam-orange);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.module-close:hover {
    background: var(--hovercam-dark);
    transform: rotate(90deg);
}

.module-title {
    font-size: 24px;
    color: var(--text-primary);
}

.module-content {
    height: calc(100vh - 90px);
    background: var(--white);
}

.module-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design for Large Touch Panels */
@media (min-width: 1920px) {
    .toolbox-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        max-width: 1800px;
    }
    
    .tool-card {
        min-height: 300px;
    }
    
    .tool-icon {
        font-size: 56px;
        width: 100px;
        height: 100px;
    }
    
    .tool-name {
        font-size: 26px;
    }
    
    .tool-description {
        font-size: 16px;
    }
    
    .welcome-text {
        font-size: 40px;
    }
    
    .ai-prompt-box {
        min-height: 80px;
    }
    
    .ai-prompt-input {
        font-size: 22px;
    }
}

/* Touch-friendly adjustments */
@media (pointer: coarse) {
    .tool-card {
        min-height: 280px;
    }
    
    .nav-link {
        padding: 12px 18px;
    }
    
    .quick-prompt-btn {
        padding: 15px 30px;
        font-size: 18px;
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--hovercam-orange);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}