/* CSS Variables for theming - Dark Mode Only */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #a0aec0;
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --border-color: #4a5568;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.5);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hover: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Legal Pages Styles */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.legal-content h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.legal-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.legal-section h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-section ul {
    color: var(--text-secondary);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

/* FAQ Styles */
.faq-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.faq-content h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.faq-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.faq-category-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.faq-category-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.faq-category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: rgba(102, 126, 234, 0.1);
}

.faq-question h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-contact {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.faq-contact h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.faq-contact p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Guide Styles */
.guide-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.guide-header {
    text-align: center;
    margin-bottom: 4rem;
}

.guide-header h1 {
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.guide-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.guide-steps {
    margin-bottom: 4rem;
}

.step-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.step-number {
    background: var(--gradient-primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.method-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.method-option {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.method-option h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.method-option p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.content-types, .config-options, .usage-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.content-type, .config-option, .usage-option {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.content-type i, .config-option i, .usage-option i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.content-type h4, .config-option h4, .usage-option h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.content-type p, .config-option p, .usage-option p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.generation-info {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.info-item span {
    color: var(--text-secondary);
}

.guide-cta {
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
}

.guide-cta h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.guide-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

/* Category Pages Styles */
.category-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.category-header {
    text-align: center;
    margin-bottom: 4rem;
}

.category-header h1 {
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.category-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

.category-features {
    margin-bottom: 4rem;
}

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

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-card i {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.category-benefits {
    margin-bottom: 4rem;
}

.category-benefits h2 {
    color: var(--text-primary);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

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

.benefit-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.benefit-item i {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.benefit-item h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.category-examples {
    margin-bottom: 4rem;
}

.category-examples h2 {
    color: var(--text-primary);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

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

.example-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
}

.example-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.example-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.example-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.category-cta {
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
}

.category-cta h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.category-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

html {
    background: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.app-container {
    background: var(--bg-primary);
    min-height: 100vh;
}

/* Header Styles */
.app-header {
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.95) 0%, rgba(45, 55, 72, 0.95) 100%);
    border-bottom: 1px solid rgba(74, 85, 104, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.app-header.scrolled {
    background: rgba(26, 32, 44, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(74, 85, 104, 0.9);
}

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

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.app-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.875rem;
    font-weight: 800;
    color: #f7fafc;
    text-decoration: none;
    margin: 0;
    letter-spacing: -0.025em;
    transition: all 0.3s ease;
    position: relative;
}

.app-title:hover {
    color: #667eea;
    transform: translateY(-1px);
}

.app-title img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.2));
    transition: all 0.3s ease;
}

.app-title:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-link {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    position: relative;
    border-radius: 8px;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
    font-weight: 700;
}

.nav-link.active::after {
    width: 80%;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.nav-link.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.nav-link.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.nav-link.btn::after {
    display: none;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    background: rgba(45, 55, 72, 0.8);
    border-radius: 12px;
    padding: 0.375rem;
    border: 1px solid rgba(74, 85, 104, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lang-btn {
    background: none;
    border: none;
    padding: 0.625rem 1.125rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #a0aec0;
    letter-spacing: 0.01em;
    min-width: 60px;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.lang-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.lang-btn:active {
    transform: translateY(0) scale(0.95);
    background: rgba(102, 126, 234, 0.15);
}

.lang-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.lang-btn i {
    font-size: 0.75rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.lang-btn.active i {
    opacity: 1;
    transform: scale(1.1);
}

.lang-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex !important;
    background: none;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    color: #a0aec0;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.05);
}

.mobile-menu-btn.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 32, 44, 0.98);
    border-top: 1px solid rgba(74, 85, 104, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(20px);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu.active {
    display: block !important;
}

.mobile-nav {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-nav-section {
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    padding-bottom: 1rem;
}

.mobile-nav-section:last-child {
    border-bottom: none;
}

.mobile-nav-title {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.mobile-nav-link {
    color: #e2e8f0;
    text-decoration: none;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    color: #667eea;
    font-size: 0.9rem;
}

.mobile-nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateX(4px);
}

.mobile-nav-link.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.mobile-nav-link.active {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.2);
    font-weight: 700;
}

.mobile-nav-link.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.mobile-language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.mobile-language-switcher .lang-btn {
    flex: 1;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .language-switcher {
        display: none !important;
    }
    
    .header-content {
        padding: 1rem 0;
    }
    
    .app-title {
        font-size: 1.5rem;
    }
    
    .app-title img {
        width: 36px;
        height: 36px;
    }
    
    .header-right {
        gap: 1rem;
    }
}

/* Show mobile menu on all screen sizes */
.mobile-menu-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1000 !important;
    width: 44px !important;
    height: 44px !important;
    background: none !important;
    border: none !important;
    padding: 0.75rem !important;
    cursor: pointer !important;
    color: #a0aec0 !important;
    font-size: 1.25rem !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Mobile menu is now always available */

/* Show mobile menu on all devices */
/* Mobile menu is now always available on all screen sizes */

/* Desktop-specific mobile menu visibility */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1000 !important;
    }
}

/* Dark mode is now permanent - no media query needed */

/* Mobile First: Main Content */
.app-main {
    padding: 1.5rem 0;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
    flex: 1;
}

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

/* Specific display rules for tab contents */
#concepts-tab.active,
#quiz-tab.active,
#glossary-tab.active {
    display: block;
}

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

/* Mobile First: Lectures Tab */
#lectures-tab.active {
    display: block;
}

.lectures-sidebar {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    position: relative;
}

.lectures-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1rem;
}

.lectures-sidebar-toggle {
    background: none;
    border: none;
    color: #667eea;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lectures-sidebar-toggle.collapsed {
    transform: rotate(-90deg);
}

.lecture-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.lecture-list.expanded {
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.lectures-sidebar h2 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.lecture-item {
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-bottom: 0.5rem;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lecture-item:hover,
.lecture-item:focus {
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.2);
}

.lecture-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.lecture-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.lecture-description {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.4;
}

.lecture-progress {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

.lectures-content {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.lecture-header h2 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.lecture-header p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.lecture-meta {
    margin-bottom: 1.5rem;
}

.badge {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.question-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.question-card:hover {
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
}

.question-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 44px;
    padding: 0.5rem 0;
    line-height: 1.4;
}

.question-title:hover {
    color: #667eea;
}

.question-title span {
    flex: 1;
}

.question-title i {
    margin-top: 0.25rem;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.question-answer {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    animation: slideDown 0.3s ease;
}

.question-answer.show {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.difficulty-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.difficulty-basic {
    background: #d4edda;
    color: #155724;
}

.difficulty-intermediate {
    background: #fff3cd;
    color: #856404;
}

.difficulty-advanced {
    background: #f8d7da;
    color: #721c24;
}

.question-examples,
.answer-content {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.question-examples h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.question-examples ul,
.answer-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.question-examples li,
.answer-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.question-examples li:before {
    content: "▸";
    color: #667eea;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Mobile First: Concepts Tab */
.concepts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Comparison Examples */
.comparison-examples {
    margin-top: 2rem;
}

.comparison-examples h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.comparison-example-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.comparison-example-item h4 {
    color: #333;
    margin-bottom: 1rem;
}

.comparison-grid {
    display: grid;
    gap: 0.5rem;
}

.comparison-row {
    color: #666;
    line-height: 1.4;
}

.comparison-row strong {
    color: #667eea;
}

.concept-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.concept-card h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

.handlungstyp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.handlungstyp-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.25rem;
    border-left: 4px solid #667eea;
}

.handlungstyp-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.handlungstyp-antrieb {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.handlungstyp-leitfrage {
    font-style: italic;
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.handlungstyp-beispiel {
    background: rgba(102, 126, 234, 0.05);
    padding: 0.75rem;
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.strukturbegriff-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}

.strukturbegriff-term {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.strukturbegriff-definition {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

.concept-section {
    margin-bottom: 2rem;
}

.concept-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.concept-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.25rem;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.concept-item:hover {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.concept-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.concept-desc {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

.concept-elements,
.concept-examples,
.concept-characteristics {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #555;
}

.concept-elements strong,
.concept-examples strong,
.concept-characteristics strong {
    color: #667eea;
    font-weight: 600;
}

/* Mobile First: Quiz Tab */
.quiz-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

.quiz-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.quiz-header h2 {
    color: #667eea;
    font-size: 1.3rem;
}

.quiz-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
}

.quiz-question {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.quiz-option {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 44px;
}

.quiz-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.quiz-option.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.quiz-option.correct {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.quiz-option.incorrect {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.option-letter {
    background: #667eea;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.quiz-option.correct .option-letter {
    background: #28a745;
}

.quiz-option.incorrect .option-letter {
    background: #dc3545;
}

.quiz-explanation {
    background: #f0f8ff;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
}

.quiz-explanation h4 {
    color: #667eea;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.quiz-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.quiz-results {
    text-align: center;
    padding: 2rem 0;
}

.quiz-results h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.quiz-score-display {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1rem;
}

/* Mobile First: Glossary Tab */
.glossary-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.glossary-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.glossary-header h2 {
    color: #667eea;
    font-size: 1.3rem;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
}

.glossary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.glossary-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.25rem;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.glossary-item:hover {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.glossary-term {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.glossary-definition {
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.glossary-detail,
.glossary-examples,
.glossary-characteristics {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

.glossary-example,
.glossary-examples {
    background: #f0f8ff;
    padding: 0.75rem;
    border-radius: 5px;
    border-left: 3px solid #667eea;
    margin-top: 0.5rem;
}

.glossary-conclusion {
    background: #f9f9f9;
    padding: 0.75rem;
    border-radius: 5px;
    font-style: italic;
    margin-top: 0.5rem;
}

.glossary-context {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.glossary-strategies,
.glossary-types,
.glossary-practices {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.glossary-strategies ul,
.glossary-types ul,
.glossary-practices ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.glossary-strategies li,
.glossary-types li,
.glossary-practices li {
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.glossary-related {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.8rem;
    color: #666;
}

.related-term {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-weight: 500;
    white-space: nowrap;
    margin-right: 0.5rem;
}

.glossary-term .difficulty-badge {
    margin-left: 0.5rem;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
}

/* Mobile First: Buttons */
.btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
    min-height: 44px;
    width: 100%;
    max-width: 300px;
}

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

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

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

/* Footer */
.app-footer {
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(74, 85, 104, 0.2);
    padding: 1.5rem 0;
    text-align: center;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Universal Learning App Platform Components */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.app-preview {
    background: #2d3748;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 100%;
    min-height: 500px;
}

.preview-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.preview-dots {
    display: flex;
    gap: 0.5rem;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
}

.preview-dots span:nth-child(1) { background: #ff5f57; }
.preview-dots span:nth-child(2) { background: #ffbd2e; }
.preview-dots span:nth-child(3) { background: #28ca42; }

.preview-content {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.preview-tab {
    padding: 0.5rem 1rem;
    background: #4a5568;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #a0aec0;
}

.preview-tab.active {
    background: #667eea;
    color: white;
}

.preview-body {
    padding: 1rem;
    background: #1a202c;
    border-radius: 10px;
    margin-top: 1rem;
}

.preview-lecture-content h4,
.preview-quiz-content h4,
.preview-glossary-content h4 {
    color: #f7fafc;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.preview-lecture-content p,
.preview-quiz-content p,
.preview-glossary-content p {
    color: #e2e8f0;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.preview-progress {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #4a5568;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.preview-progress span {
    color: #a0aec0;
    font-size: 0.85rem;
}

.preview-question {
    margin-bottom: 1rem;
}

.preview-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.preview-option {
    padding: 0.5rem 0.75rem;
    background: #4a5568;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.preview-option:hover {
    background: #5a6c7d;
}

.preview-glossary-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #4a5568;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.preview-glossary-item:last-child {
    border-bottom: none;
}

.preview-glossary-item strong {
    color: #667eea;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: #2d3748;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #f7fafc;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: #1a202c;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #667eea;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f7fafc;
}

.feature-card p {
    color: #e2e8f0;
    line-height: 1.6;
}

/* How it Works Section - REMOVED */

/* Featured Apps Section - REMOVED */

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.step-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.step-link:hover {
    text-decoration: underline;
}

/* Featured Apps Section - REMOVED */

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    z-index: 1;
    position: relative;
    max-height: 800px;
    overflow-y: auto;
    padding-right: 10px;
}

.apps-grid::-webkit-scrollbar {
    width: 8px;
}

.apps-grid::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.apps-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.apps-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-dark);
}

@media (min-width: 768px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

.app-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    max-height: 400px;
    z-index: 1;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

/* App preview and icon styles removed - no longer needed */

.app-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.app-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.app-category {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    white-space: nowrap;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.app-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
    font-size: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.app-date,
.app-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.app-date i,
.app-language i {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.app-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.section-actions {
    text-align: center;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Upload Page */
.upload-main {
    padding: 2rem 0;
}

/* Side Banner Ads */
.side-banner-left,
.side-banner-right {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 600px;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.side-banner-left {
    left: 20px;
}

.side-banner-right {
    right: 20px;
}

.side-banner-left:hover,
.side-banner-right:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.side-banner-content {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.side-banner-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.side-banner-content p {
    margin: 0.25rem 0;
}

/* Hide banners on mobile */
@media (max-width: 1200px) {
    .side-banner-left,
    .side-banner-right {
        display: none;
    }
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.welcome-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.welcome-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* How It Works */
.how-it-works {
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.step-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--shadow-light);
}

.step-icon {
    margin: 1rem 0;
    font-size: 3rem;
    color: var(--primary-color);
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* What You Need */
.what-you-need {
    padding: 3rem 0;
    margin-bottom: 2rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    margin: 2rem 0;
}

.what-you-need h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.requirement-card {
    text-align: center;
    padding: 1.5rem;
}

.requirement-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.requirement-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.requirement-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.requirement-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.requirement-card a:hover {
    text-decoration: underline;
}

/* Example Format */
.example-format {
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.example-format h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.format-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.format-example {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.format-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.format-header span {
    font-weight: 600;
    color: var(--text-primary);
}

/* Create App Section */
.create-app-section {
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.create-header {
    text-align: center;
    margin-bottom: 2rem;
}

.create-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.create-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Encouragement Section */
.encouragement-section {
    padding: 3rem 0;
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.encouragement-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.encouragement-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.encouragement-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.encouragement-content > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.encouragement-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.encouragement-option {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.encouragement-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.option-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.encouragement-option h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.encouragement-option p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.encouragement-option .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.encouragement-option .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Input Method Tabs */
.input-method-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #4a5568;
    color: #e2e8f0;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.tab-btn:hover {
    background: #5a6c7d;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tab-btn i {
    font-size: 1.1rem;
}

/* JSON Text Input Area */
.json-text-area {
    background: #1a202c;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.json-text-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.json-text-header h3 {
    color: #f7fafc;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.json-text-header p {
    color: #e2e8f0;
    font-size: 1rem;
}

.json-text-input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.json-text-input {
    width: 100%;
    min-height: 300px;
    padding: 1.5rem;
    background: #2d3748;
    border: 2px solid #4a5568;
    border-radius: 12px;
    color: #f7fafc;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.json-text-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.json-text-input::placeholder {
    color: #a0aec0;
}

.json-text-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.json-text-actions .btn {
    min-width: 150px;
}

/* App Info in Modal */
.app-info {
    background: #2d3748;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.app-info p {
    margin: 0.5rem 0;
    color: #e2e8f0;
}

.app-info strong {
    color: #f7fafc;
}

.upload-section {
    max-width: 800px;
    margin: 0 auto;
}

.upload-header {
    text-align: center;
    margin-bottom: 3rem;
}

.upload-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.upload-header p {
    font-size: 1.2rem;
    color: #666;
}

.upload-area {
    border: 3px dashed #e0e0e0;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.02);
}

.upload-area.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-content {
    position: relative;
    z-index: 2;
}

.upload-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.upload-area h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.upload-area p {
    color: #666;
    margin-bottom: 2rem;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.upload-overlay i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.file-info {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.file-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-icon {
    font-size: 2rem;
    color: #667eea;
}

.file-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.file-text p {
    color: #666;
    font-size: 0.9rem;
}

.validation-results {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.validation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.validation-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.validation-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.validation-status.success {
    color: #28a745;
}

.validation-status.error {
    color: #dc3545;
}

.validation-details {
    font-size: 0.9rem;
}

.validation-error,
.validation-warning,
.validation-info {
    margin-bottom: 1rem;
}

.validation-error h4,
.validation-warning h4,
.validation-info h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.validation-error {
    color: #dc3545;
}

.validation-warning {
    color: #ffc107;
}

.validation-info {
    color: #17a2b8;
}

.app-config {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.app-config h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

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

.config-item label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.generate-section {
    text-align: center;
    margin-bottom: 3rem;
}

.generate-note {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.help-section {
    margin-bottom: 3rem;
}

.help-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

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

.help-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.help-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.help-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.help-icon {
    width: 60px;
    height: 60px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.help-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.help-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.help-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.help-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.example-section {
    margin-bottom: 3rem;
}

.example-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.example-code {
    background: #1a1a2e;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.code-header {
    background: #333;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.code-header span {
    font-weight: 500;
}

.example-code pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.example-code code {
    color: #f0f0f0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Marketplace Page */
.marketplace-main {
    padding: 2rem 0;
    z-index: 1;
    position: relative;
}

.marketplace-header {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.marketplace-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.marketplace-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.marketplace-hero p {
    font-size: 1.2rem;
    color: #666;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    margin: 2rem 0;
}

.loading-spinner {
    margin-bottom: 1.5rem;
}

.loading-spinner i {
    font-size: 2.5rem;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

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

.loading-state p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 1px solid #e53e3e;
    margin: 2rem 0;
    background: rgba(229, 62, 62, 0.05);
}

.error-icon {
    margin-bottom: 1.5rem;
}

.error-icon i {
    font-size: 3.5rem;
    color: #e53e3e;
}

.error-state h3 {
    font-size: 1.5rem;
    color: #e53e3e;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.error-state p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 1px solid var(--text-muted);
    margin: 2rem 0;
    background: rgba(160, 174, 192, 0.05);
}

.empty-icon {
    margin-bottom: 1.5rem;
}

.empty-icon i {
    font-size: 3.5rem;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.empty-state p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

.search-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-box i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.advanced-filters {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.75rem;
}

.checkbox-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.rating-filter select {
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: white;
}

.apps-section {
    margin-bottom: 3rem;
    z-index: 1;
    position: relative;
}

.apps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.apps-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.view-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.apps-grid.apps-list {
    grid-template-columns: 1fr;
}

.app-card-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.app-card-list .app-preview-img {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.app-card-list .app-info {
    flex: 1;
}

.app-card-list .app-header {
    margin-bottom: 0.5rem;
}

.app-card-list .app-description {
    margin-bottom: 0.5rem;
}

.load-more {
    text-align: center;
    margin-top: 2rem;
}

.categories-section {
    margin-bottom: 3rem;
}

.categories-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

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

.category-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #667eea;
    margin: 0 auto 1rem;
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* AdSense Container - REMOVED */

/* Enhanced Footer */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #f7fafc;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(74, 85, 104, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

/* Button Enhancements */
.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Responsive Design for New Components */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: none;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
    
    .app-card {
        min-height: auto;
        max-height: none;
        padding: 1rem;
        position: relative;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .app-card.mobile-compact {
        min-height: auto;
        padding: 1rem;
        max-height: 200px;
        overflow: hidden;
    }
    
    .app-card.mobile-compact .app-description,
    .app-card.mobile-compact .app-meta {
        display: none;
    }
    
    .app-card.mobile-compact .app-header {
        margin-bottom: 0.5rem;
    }
    
    .app-card.mobile-compact .app-actions {
        margin-top: 0.5rem;
    }
    
    .app-card.mobile-expanded {
        min-height: auto;
        padding: 1rem;
        max-height: none;
        overflow: visible;
    }
    
    .app-card.mobile-expanded .app-description,
    .app-card.mobile-expanded .app-meta {
        display: block;
    }
    
    .app-card .mobile-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
    }
    
    .app-card .mobile-toggle:hover {
        background: var(--primary-color-dark);
        transform: scale(1.1);
    }
    
    .app-card .mobile-toggle i {
        font-size: 14px;
        transition: transform 0.3s ease;
    }
    
    .app-card.mobile-expanded .mobile-toggle i {
        transform: rotate(180deg);
    }
    
    .app-header h3 {
        font-size: 1.2rem;
        margin-right: 40px; /* Space for toggle button */
    }
    
    .app-description {
        font-size: 1rem;
        -webkit-line-clamp: 6;
        margin-bottom: 1rem;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .app-card.mobile-expanded .app-description {
        opacity: 1;
        max-height: 200px;
        margin-bottom: 1rem;
    }
    
    .app-meta {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .app-card.mobile-expanded .app-meta {
        opacity: 1;
        max-height: 50px;
        margin-bottom: 1rem;
    }
    
    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .input-method-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .json-text-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .json-text-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .app-card-list {
        flex-direction: column;
        text-align: center;
    }
    
    .app-card-list .app-preview-img {
        width: 100px;
        height: 100px;
    }
    
    .encouragement-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .encouragement-content h3 {
        font-size: 1.5rem;
    }
    
    .encouragement-content > p {
        font-size: 1rem;
    }
    
    .encouragement-option {
        padding: 1.5rem;
    }
}

/* Guided Builder Styles */
.builder-main {
    padding: 2rem 0;
}

.builder-header {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.builder-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.builder-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.builder-hero p {
    font-size: 1.2rem;
    color: #666;
}

.builder-progress {
    margin-top: 2rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #667eea;
    color: white;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step span {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.step.active span {
    color: #667eea;
    font-weight: 500;
}

.step.completed span {
    color: #28a745;
    font-weight: 500;
}

.builder-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

.builder-step {
    display: none;
}

.builder-step.active {
    display: block;
}

.step-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.step-content p {
    color: #666;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-group small {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Lecture Builder */
.lecture-builder-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.lecture-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.lecture-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.questions-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.questions-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.question-builder-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.question-header h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Quiz Builder */
.quiz-builder-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.quiz-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.options-section {
    margin: 1rem 0;
}

.options-section label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.75rem;
}

.option-input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.option-input input[type="radio"] {
    margin: 0;
}

.option-input input[type="text"] {
    flex: 1;
}

/* Glossary Builder */
.glossary-builder-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.glossary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.glossary-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Preview Section */
.preview-section {
    text-align: center;
}

.preview-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.preview-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.preview-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.preview-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.preview-stats span {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
}

.download-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Navigation */
.builder-navigation {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Button Enhancements */
.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Responsive Design for Builder */
@media (max-width: 768px) {
    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .step {
        padding: 0;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .download-section {
        flex-direction: column;
        align-items: center;
    }
    
    .preview-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .option-input {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
}

/* Enhanced Responsive Design */

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .app-main {
        padding: 1rem 0;
    }
    
    .app-title {
        font-size: 1.3rem;
    }
    
    .app-title i {
        font-size: 1.2rem;
    }
    
    .nav-button {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
    
    .nav-button i {
        font-size: 0.9rem;
    }
    
    .lectures-content,
    .concept-card,
    .quiz-container,
    .glossary-container {
        padding: 1rem;
    }
    
    .question-card {
        padding: 1rem;
    }
    
    .question-title {
        font-size: 0.95rem;
        gap: 0.5rem;
    }
    
    .handlungstyp-item,
    .strukturbegriff-item,
    .concept-item,
    .glossary-item {
        padding: 1rem;
    }
    
    .quiz-option {
        padding: 0.875rem;
    }
    
    .quiz-stats {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Auto-collapse lecture list on very small screens */
    .lecture-list.expanded {
        max-height: 35vh;
        margin-bottom: 0.5rem;
    }
    
    .lectures-sidebar {
        margin-bottom: 0.75rem;
    }
    
    .lectures-sidebar-header h2 {
        font-size: 1.1rem;
    }
    
    /* Mobile App Cards - Compact with Expandable Details */
    .apps-grid {
        gap: 1rem;
    }
    
    .app-card {
        min-height: auto;
        padding: 1rem;
        position: relative;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .app-card.mobile-compact {
        min-height: auto;
        padding: 1rem;
        max-height: 180px;
        overflow: hidden;
    }
    
    .app-card.mobile-compact .app-description,
    .app-card.mobile-compact .app-meta {
        display: none;
    }
    
    .app-card.mobile-compact .app-header {
        margin-bottom: 0.5rem;
    }
    
    .app-card.mobile-compact .app-actions {
        margin-top: 0.5rem;
    }
    
    .app-card.mobile-expanded {
        min-height: auto;
        padding: 1rem;
        max-height: none;
        overflow: visible;
    }
    
    .app-card.mobile-expanded .app-description,
    .app-card.mobile-expanded .app-meta {
        display: block;
    }
    
    .app-card .mobile-toggle {
        display: none;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
    }
    
    .app-card .mobile-toggle:hover {
        background: var(--primary-color-dark);
        transform: scale(1.1);
    }
    
    .app-card .mobile-toggle i {
        font-size: 14px;
        transition: transform 0.3s ease;
    }
    
    .app-card.mobile-expanded .mobile-toggle i {
        transform: rotate(180deg);
    }
    
    .app-header h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-right: 40px; /* Space for toggle button */
    }
    
    .app-description {
        font-size: 1rem;
        line-height: 1.5;
        -webkit-line-clamp: 6;
        margin-bottom: 1rem;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .app-card.mobile-expanded .app-description {
        opacity: 1;
        max-height: 200px;
        margin-bottom: 1rem;
    }
    
    .app-meta {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .app-card.mobile-expanded .app-meta {
        opacity: 1;
        max-height: 50px;
        margin-bottom: 1rem;
    }
    
    .app-category {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
    
    /* Business page app cards */
    .content-section .apps-grid .app-card {
        min-height: auto;
        padding: 1rem;
        position: relative;
        overflow: hidden;
        box-sizing: border-box;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .content-section .apps-grid .app-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .content-section .apps-grid .app-card .app-actions {
        margin-top: 1rem;
    }
    
    .content-section .apps-grid .app-card .app-icon {
        font-size: 2rem;
        color: var(--primary-color);
        margin-bottom: 1rem;
    }
    
    /* Hide descriptions on mobile for business page */
    .content-section .apps-grid .app-card .app-description {
        display: none;
    }
    
    .content-section .apps-grid .app-card .app-actions {
        display: none;
    }
    
    /* App Modal Styles */
    .app-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-color: white;
        margin: 5% auto;
        padding: 0;
        border-radius: 12px;
        width: 90%;
        max-width: 500px;
        max-height: 80vh;
        overflow-y: auto;
        position: relative;
        animation: modalSlideIn 0.3s ease;
    }
    
    @keyframes modalSlideIn {
        from {
            opacity: 0;
            transform: translateY(-50px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem;
        border-bottom: 1px solid #eee;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
        color: white;
        border-radius: 12px 12px 0 0;
    }
    
    .modal-header h2 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 600;
    }
    
    .modal-close {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 50%;
        transition: background-color 0.2s ease;
    }
    
    .modal-close:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    .modal-body {
        padding: 2rem;
        text-align: center;
    }
    
    .modal-app-icon {
        font-size: 4rem;
        color: var(--primary-color);
        margin-bottom: 1.5rem;
    }
    
    .modal-body p {
        font-size: 1.1rem;
        line-height: 1.6;
        color: #666;
        margin-bottom: 2rem;
    }
    
    .modal-actions {
        margin-top: 2rem;
    }
    
    .modal-actions .btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

/* Desktop: Show full app cards and hide modal functionality */
@media (min-width: 769px) {
    .content-section .apps-grid .app-card {
        cursor: default;
    }
    
    .content-section .apps-grid .app-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .content-section .apps-grid .app-card .app-description {
        display: block !important;
    }
    
    .content-section .apps-grid .app-card .app-actions {
        display: block !important;
    }
    
    .content-section .apps-grid .app-card[onclick] {
        cursor: default;
    }
    
    .content-section .apps-grid .app-card[onclick]:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Medium Mobile (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .app-title {
        font-size: 1.6rem;
    }
    
    .handlungstyp-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .concept-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .quiz-options {
        gap: 1rem;
    }
    
    .glossary-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Tablet (769px to 1024px) */
@media (min-width: 769px) {
    .app-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .app-title {
        font-size: 1.8rem;
    }
    
    .progress-info {
        flex-direction: row;
        gap: 1rem;
        width: auto;
    }
    
    .progress-bar {
        width: 200px;
    }
    
    .nav-tabs {
        justify-content: center;
        padding: 0;
    }
    
    .nav-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    #lectures-tab.active {
        display: grid;
        grid-template-columns: 320px 1fr;
        gap: 2rem;
        align-items: start;
    }
    
    .lectures-sidebar {
        position: sticky;
        top: 120px;
        max-height: calc(100vh - 200px);
        margin-bottom: 0;
        padding: 1.5rem;
        overflow: hidden;
    }
    
    .lectures-sidebar-header {
        display: none;
    }
    
    .lecture-list {
        max-height: calc(100vh - 280px) !important;
        overflow-y: auto !important;
        transition: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .concepts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .handlungstyp-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .concept-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .quiz-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .quiz-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .quiz-options {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .glossary-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .glossary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .btn {
        width: auto;
        max-width: none;
    }
}

/* Desktop (1025px and up) */
@media (min-width: 1025px) {
    .app-main {
        padding: 2rem 0;
    }
    
    .handlungstyp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .concept-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .quiz-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .glossary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .lectures-content,
    .concept-card,
    .quiz-container,
    .glossary-container {
        padding: 2rem;
    }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .concepts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .handlungstyp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .concept-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .glossary-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Touch enhancements */
@media (hover: none) and (pointer: coarse) {
    .nav-button,
    .lecture-item,
    .question-title,
    .quiz-option,
    .btn {
        min-height: 48px;
    }
    
    .nav-button:hover,
    .lecture-item:hover,
    .question-title:hover,
    .quiz-option:hover,
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .app-header,
    .app-nav,
    .app-footer {
        background: rgba(255, 255, 255, 1);
    }
    
    .lectures-content,
    .concept-card,
    .quiz-container,
    .glossary-container {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Create Page Styles */
.create-main {
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Welcome Section */
.welcome-section {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.welcome-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: none;
    filter: none;
}

.welcome-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* How It Works */
.how-it-works {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.step-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* AI Tools Section */
.ai-tools-section {
    padding: 4rem 0;
}

.ai-tools-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.ai-info-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ai-info-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.ai-info-content h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.ai-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.ai-info-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.ai-info-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.tool-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
}

.tool-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tool-card.featured:hover {
    transform: translateY(-5px) scale(1.02);
}

.tool-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tool-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tool-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.tool-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-features li i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.tool-premium {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.tool-premium p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Content Preparation */
.content-prep-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.content-prep-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.prep-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.prep-method {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.prep-method:hover {
    transform: translateY(-3px);
}

.method-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.prep-method h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
    font-size: 1.3rem;
}

.prep-method p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.method-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.method-steps .step {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    border-left: 3px solid var(--primary-color);
}

/* Main Prompt Section */
.main-prompt-section {
    padding: 4rem 0;
}

.main-prompt-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.prompt-intro {
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.intro-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.intro-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.intro-content h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.intro-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.prompt-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.prompt-card.main-prompt {
    border: 2px solid var(--primary-color);
}

.prompt-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.prompt-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.prompt-box {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.prompt-header {
    background: var(--bg-secondary);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.prompt-header span {
    font-weight: 600;
    color: var(--text-primary);
}

.prompt-text {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
}

.prompt-text:focus {
    outline: none;
}

/* Example Section */
.example-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.example-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.example-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.example-step {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.example-step:hover {
    transform: translateY(-3px);
}

.example-step .step-number {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.example-step .step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.example-step .step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.example-result {
    max-width: 800px;
    margin: 0 auto;
}

.result-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.result-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.result-title h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.result-title p {
    color: var(--text-secondary);
    margin: 0;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.result-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.section-header i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.section-header h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0;
}

.section-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.item-number {
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.item-icon {
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.item-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Tips Section */
.tips-section {
    padding: 4rem 0;
}

.tips-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tip-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-3px);
}

.tip-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tip-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.tip-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.cta-content p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design for Create Page */
@media (max-width: 768px) {
    .welcome-content h1 {
        font-size: 2rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .example-steps {
        grid-template-columns: 1fr;
    }
    
    .example-step {
        flex-direction: column;
        text-align: center;
    }
    
    .result-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .prep-methods {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-info-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card.featured {
        transform: none;
    }
    
    .tool-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .ai-info-card,
    .intro-card {
        flex-direction: column;
        text-align: center;
    }
    
    .prompt-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Dark mode is now permanent */ 

/* Show advertisement elements */
.ad-container,
.ad-placeholder {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
}

/* Beautiful Overlay Side Banners */
.side-banner-left,
.side-banner-right {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 160px !important;
    height: 600px !important;
    z-index: 1000 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(102, 126, 234, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1) !important;
    transition: all 0.3s ease !important;
}

.side-banner-left {
    left: 20px !important;
}

.side-banner-right {
    right: 20px !important;
}

.side-banner-left:hover,
.side-banner-right:hover {
    transform: translateY(-50%) scale(1.02) !important;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
}

/* Hide on mobile */
@media (max-width: 1200px) {
    .side-banner-left,
    .side-banner-right {
        display: none !important;
    }
}

/* Hide premium popup only */
.premium-popup {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Normal layout without side banners */
.app-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}



/* Ensure content takes full width */
.container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

/* Show Google AdSense elements */
ins.adsbygoogle,
iframe[src*="googlesyndication"],
iframe[src*="doubleclick"],
div[id*="google_ads"],
div[class*="google_ads"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
}

/* Subdirectory Page Styles */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--text-primary);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-header h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.content-sections {
    max-width: 1000px;
    margin: 0 auto;
}

.content-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.content-section:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.content-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.content-section ul {
    color: var(--text-secondary);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.template-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.template-feature {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.template-feature:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.template-feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.template-feature h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.template-feature p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.download-section {
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin: 3rem 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.download-section h2 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.download-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.download-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.download-btn i {
    font-size: 1.2rem;
}

.template-preview {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.template-preview h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.preview-code {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid #333;
}

.preview-code pre {
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.preview-code .comment {
    color: #6b7280;
}

.preview-code .string {
    color: #10b981;
}

.preview-code .number {
    color: #f59e0b;
}

.preview-code .boolean {
    color: #3b82f6;
}

/* Responsive Design for Subdirectory Pages */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .template-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
}

/* Existing styles below */

/* Desktop: Hide mobile toggle and show all content */
@media (min-width: 769px) {
    .app-card .mobile-toggle {
        display: none !important;
    }
    
    .app-card .app-description,
    .app-card .app-meta {
        display: block !important;
        opacity: 1 !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .app-header h3 {
        margin-right: 0 !important;
    }
    
    .app-card {
        min-height: 300px !important;
        padding: 1.5rem !important;
    }
}

/* Mobile: Hide descriptions and show only titles for marketplace */
@media (max-width: 768px) {
    .apps-grid .app-card .app-description,
    .apps-grid .app-card .app-meta,
    .apps-grid .app-card .app-actions {
        display: none !important;
    }
    
    .apps-grid .app-card {
        cursor: pointer !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        min-height: auto !important;
        padding: 1rem !important;
    }
    
    .apps-grid .app-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    /* Hide mobile toggle on marketplace */
    .apps-grid .app-card .mobile-toggle {
        display: none !important;
    }
    
    /* Force compact layout */
    .apps-grid .app-card.mobile-compact,
    .apps-grid .app-card.mobile-expanded {
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Desktop: Show full app cards for marketplace */
@media (min-width: 769px) {
    .apps-grid .app-card .app-description,
    .apps-grid .app-card .app-meta,
    .apps-grid .app-card .app-actions {
        display: block !important;
    }
    
    .apps-grid .app-card {
        cursor: default !important;
        min-height: 300px !important;
        padding: 1.5rem !important;
    }
    
    .apps-grid .app-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}