/* ============================================================================
   PortACourse - Creative Design System
   Digital Craftsmanship: Structured, Lucid, Kinetic, Warm
   ============================================================================ */

/* CSS Custom Properties (Variables) - Updated Brand Colors */
:root {
    /* New Brand Colors */
    --deep-indigo: #4F46E5;
    --electric-mint: #10B981;
    --warm-slate: #64748B;
    --paper-bg: #F8FAFC;
    --white: #FFFFFF;

    /* Contextual Colors */
    --dark-indigo: #3730A3;
    --light-indigo: #818CF8;
    --mint-hover: #059669;
    --slate-dark: #475569;
    --slate-light: #94A3B8;

    /* Semantic Colors */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;

    /* Shadows for Glassmorphism */
    --glass-shadow: 0 8px 32px 0 rgba(79, 70, 229, 0.1);
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Base Typography - Space Grotesk for Headlines, Inter for Body */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--warm-slate);
    background-color: var(--paper-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    color: var(--slate-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
}

/* Accessibility - Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background-color: var(--deep-indigo);
    color: white;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
    top: 0;
}

/* Navigation - Enhanced with Logo Support */
.navbar.bg-dark-blue {
    background: linear-gradient(135deg, var(--deep-indigo) 0%, var(--dark-indigo) 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--electric-mint) !important;
}

/* Buttons - Electric Mint Primary with Increased Border Radius */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.625rem 1.75rem;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-primary {
    background-color: var(--electric-mint);
    border-color: var(--electric-mint);
    color: var(--deep-indigo);
}

.btn-primary:hover {
    background-color: var(--mint-hover);
    border-color: var(--mint-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.btn-outline-primary {
    border-color: var(--deep-indigo);
    color: var(--deep-indigo);
}

.btn-outline-primary:hover {
    background-color: var(--deep-indigo);
    border-color: var(--deep-indigo);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    border-radius: 10px;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 0.75rem 2rem;
    border-radius: 12px;
}

.btn-sm {
    padding: 0.375rem 1rem;
    border-radius: 8px;
}

/* Hero Section - Enhanced with Animation Space */
.hero-section {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.95) 0%, rgba(55, 48, 163, 0.9) 100%),
                url('/portacourse/assets/images/hero-education.jpg') center center;
    background-size: cover;
    background-attachment: fixed;
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.hero-section .lead {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.hero-section .btn {
    margin: 0.5rem;
    min-width: 180px;
    position: relative;
    z-index: 1;
}

/* Magic Input Animation Container */
.magic-input-demo {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.typing-demo {
    font-family: 'Inter', monospace;
    font-size: 1.1rem;
    color: white;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--electric-mint);
    margin-left: 4px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Value Proposition Section - Glassmorphism Cards */
.value-prop-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--paper-bg) 0%, #ffffff 100%);
}

.value-prop-card {
    text-align: center;
    padding: 2.5rem;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(79, 70, 229, 0.1);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
}

.value-prop-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.15);
    border-color: var(--electric-mint);
}

.value-prop-card h3 {
    color: var(--deep-indigo);
    margin-top: 1rem;
    font-size: 1.5rem;
}

.value-prop-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--deep-indigo), var(--light-indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Feature Cards - Enhanced Glassmorphism */
.features-section {
    padding: 5rem 0;
    background-color: white;
}

.feature-card {
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 12px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: var(--card-shadow);
}

.feature-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-6px);
    border-color: var(--electric-mint);
    background: rgba(255, 255, 255, 0.95);
}

.feature-card h3 {
    color: var(--deep-indigo);
    font-size: 1.35rem;
    margin-top: 1rem;
}

.feature-card p {
    color: var(--warm-slate);
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.feature-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--deep-indigo), var(--electric-mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Use Cases Section */
.use-case-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(79, 70, 229, 0.12);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.use-case-card h4 {
    color: var(--deep-indigo);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.use-case-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--deep-indigo), var(--light-indigo));
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.use-case-card .outcome {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    padding: 1.25rem;
    border-left: 4px solid var(--electric-mint);
    margin-top: 1.25rem;
    border-radius: 8px;
}

/* Partnership/CTA Sections */
.cta-section {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(129, 140, 248, 0.08));
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.cta-section h2 {
    color: var(--deep-indigo);
    margin-bottom: 1.5rem;
}

.cta-section .btn {
    margin: 0.5rem;
}

/* Visual Divider Section */
.visual-divider {
    position: relative;
}

.visual-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.85), rgba(55, 48, 163, 0.75));
}

/* Team Section */
.team-member {
    text-align: center;
    padding: 2.5rem;
}

.team-member img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 5px solid var(--deep-indigo);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.2);
}

.team-member h3 {
    color: var(--deep-indigo);
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: var(--electric-mint);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.team-member .bio {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
    color: var(--warm-slate);
}

.company-info {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border: 1px solid rgba(79, 70, 229, 0.1);
    box-shadow: var(--card-shadow);
}

.company-info h2 {
    color: var(--deep-indigo);
}

/* Technical Specifications Table */
.table-specifications {
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 2rem;
}

.table-specifications thead {
    background: linear-gradient(135deg, var(--deep-indigo), var(--dark-indigo));
    color: white;
}

.table-specifications th {
    font-weight: 600;
    padding: 1rem;
}

.table-specifications td {
    padding: 1rem;
    color: var(--warm-slate);
}

.table-specifications tbody tr:nth-child(even) {
    background-color: var(--paper-bg);
}

/* Forms */
.form-label {
    font-weight: 600;
    color: var(--slate-dark);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-radius: 8px;
    border-color: var(--slate-light);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--deep-indigo);
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.15);
}

/* Modals */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, var(--deep-indigo), var(--dark-indigo));
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-family: 'Space Grotesk', sans-serif;
    color: white;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Pricing Section Styles */
.pricing-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.pricing-section .card-header {
    border-bottom: none;
}

.pricing-section .display-4 {
    font-size: 3.5rem;
    color: #2c3e50;
}

.pricing-section .text-primary {
    color: #0d6efd !important;
}

.pricing-section .border-primary {
    border-color: #0d6efd !important;
    border-width: 2px;
}

.pricing-section .bg-primary {
    background-color: #0d6efd !important;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--slate-dark) 0%, #1e293b 100%);
}

footer h3, footer h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    font-size: 1.25rem;
}

footer a:hover {
    color: var(--electric-mint) !important;
}

footer .input-group .form-control {
    border-radius: 8px 0 0 8px;
}

footer .input-group .btn {
    border-radius: 0 8px 8px 0;
}

#newsletter-message {
    font-size: 0.875rem;
}

#newsletter-message.alert {
    padding: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 8px;
}

/* Page Sections */
.page-header {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(55, 48, 163, 0.85)),
                url('/portacourse/assets/images/hero-technology.jpg') center center;
    background-size: cover;
    padding: 4rem 0;
    margin-bottom: 3rem;
    color: white;
}

.page-header h1,
.page-header .lead {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-header h1 {
    margin-bottom: 0.5rem;
    font-size: 2.75rem;
}

.page-header .lead {
    font-size: 1.25rem;
}

.create-header {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.9), rgba(15, 23, 42, 0.9));
}

.create-form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    padding: 2rem;
}

.create-form-header h2 {
    margin-bottom: 0.5rem;
}

.signup-iframe {
    width: 100%;
    height: 70vh;
    border: 0;
}

.content-section {
    padding: 4rem 0;
}

.content-section.bg-light {
    background-color: var(--paper-bg);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-info {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--deep-indigo);
    border-left: 4px solid var(--deep-indigo);
}

/* LMS Compatibility Section */
.lms-compatibility-section {
    padding: 5rem 0;
    background-color: white;
}

.lms-vertical-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.lms-vertical-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--electric-mint);
}

.lms-vertical-header {
    border-bottom: 2px solid var(--deep-indigo);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.lms-vertical-header h3 {
    color: var(--deep-indigo);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.lms-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lms-item {
    padding: 1rem;
    border-radius: 8px;
    background: rgba(79, 70, 229, 0.03);
    border: 1px solid rgba(79, 70, 229, 0.1);
    transition: all 0.2s ease;
}

.lms-item:hover {
    background: rgba(79, 70, 229, 0.08);
    border-color: var(--electric-mint);
}

.lms-item.featured {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(129, 140, 248, 0.1));
    border-color: var(--deep-indigo);
    border-width: 2px;
}

.lms-item.no-support {
    background: rgba(100, 116, 139, 0.05);
    border-color: var(--slate-light);
    opacity: 0.7;
}

.lms-name {
    font-weight: 600;
    color: var(--deep-indigo);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.lms-support {
    font-size: 0.875rem;
    color: var(--warm-slate);
}

.lms-note {
    font-size: 0.8rem;
    color: var(--warm-slate);
    font-style: italic;
}

.lms-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lms-badge.trending-up { background: #dcfce7; color: #166534; }
.lms-badge.enterprise { background: #e0e7ff; color: #3730a3; }
.lms-badge.no-scorm { background: #f1f5f9; color: #64748b; }

/* Module Hero Preview */
.module-hero-preview {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    overflow: hidden;
    margin: 2rem auto 0;
    max-width: 700px; /* Reduced from 900px */
    position: relative;
    z-index: 2;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem; /* Scale down text */
    transition: all 0.3s ease;
}

.preview-overlay-spinner {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.preview-overlay-spinner.active {
    opacity: 1;
    pointer-events: auto;
}

.preview-spinner-icon {
    font-size: 3rem;
    color: var(--deep-indigo);
    animation: spin 1s linear infinite;
}

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

.preview-header {
    background: #f1f5f9;
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.preview-title {
    margin-left: 1rem;
    font-size: 0.9rem;
    color: #64748b;
    font-family: monospace;
}

.preview-body {
    display: flex;
    height: 400px;
}

.preview-sidebar {
    width: 200px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 20px 0;
}

.preview-nav-item {
    padding: 10px 20px;
    color: #475569;
    cursor: pointer;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.preview-nav-item.active {
    background: #e0f2fe;
    color: var(--deep-indigo);
    border-left-color: var(--deep-indigo);
    font-weight: 600;
}

.preview-content {
    flex: 1;
    padding: 30px;
    background: white;
}

.preview-content h4 { color: var(--deep-indigo); margin-bottom: 1rem; }

.preview-video-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    backdrop-filter: blur(4px);
}

.overlay-question {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255,255,255,0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: slideUp 0.5s ease-out;
}

.overlay-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.overlay-options button {
    flex: 1;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: white;
    color: #334155;
    font-size: 0.9rem;
    cursor: pointer;
}

.overlay-options button:hover {
    background: var(--deep-indigo);
    color: white;
    border-color: var(--deep-indigo);
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

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