/* Main styles for the presentation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    overflow: hidden;
    height: 100vh;
}

#presentation-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Navigation - bottom left corner */
#presentation-nav {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

#presentation-nav button {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text-based buttons (prompts, styles, readme, points) */
#prompts-btn, #styles-toggle, #readme-btn, #points-btn {
    width: auto !important;
    height: 35px !important;
    padding: 0 15px !important;
    border-radius: 17px !important;
    font-size: 12px !important;
    font-weight: 500;
}

/* Styles toggle button - active state */
#styles-toggle.active {
    background: rgba(102, 126, 234, 0.9) !important;
    color: white !important;
}

#styles-toggle.inactive {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #666 !important;
}

#presentation-nav button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

#presentation-nav button:disabled {
    background: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
}

#slide-counter {
    font-weight: 600;
    color: white;
    min-width: 50px;
    text-align: center;
    font-size: 14px;
}

/* Progress bar */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1000;
}

#progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    width: 0%;
    transition: background 0.5s ease, width 0.3s ease;
}

/* Loading */
#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 18px;
    z-index: 2000;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    #presentation-nav {
        bottom: 15px;
        left: 15px;
        padding: 8px 16px;
        gap: 8px;
        flex-wrap: wrap;
        max-width: calc(100vw - 30px);
    }
    
    #presentation-nav button {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    /* Text-based buttons on mobile */
    #prompts-btn, #styles-toggle, #readme-btn, #points-btn {
        width: auto !important;
        height: 28px !important;
        padding: 0 10px !important;
        font-size: 10px !important;
    }
    
    #slide-counter {
        font-size: 12px;
        min-width: 45px;
    }
}

/* Single prompt suggestion - above navigation */
#prompt-suggestions {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: auto;
    height: auto;
    pointer-events: none;
    z-index: 999;
}


.prompt-label {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    padding: 2px 0 2px 2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
    display: inline-block;
}

.prompt-item {
    position: relative;
    top: auto;
    transform: none;
    width: 280px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.prompt-left,
.prompt-right {
    /* Remove individual positioning - now handled by container */
    position: relative;
    left: auto;
    right: auto;
}

.prompt-item:hover {
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.prompt-item .prompt-text {
    font-size: 12px;
    line-height: 1.4;
    display: block;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: inherit; /* Inherit white color from parent .prompt-item */
}

/* Hide on mobile and tablet */
@media (max-width: 1024px) {
    #prompt-suggestions {
        display: none;
    }
}

/* Slide container fills entire screen */
.slide-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100vw;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

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

.modal.hidden {
    display: none;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    height: 80%;
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    flex: 1;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#prompts-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.modal-prompt-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.modal-prompt-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.prompt-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.prompt-id {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.modal-prompt-item .prompt-text {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    font-style: italic;
}

.prompt-results {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 12px;
}

.prompt-results h4 {
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.prompt-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prompt-results li {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.prompt-results li:before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Scrollbar styling */
#prompts-list::-webkit-scrollbar {
    width: 8px;
}

#prompts-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

#prompts-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

#prompts-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Markdown content styling */
.markdown-content {
    color: #333;
    line-height: 1.7;
    font-size: 15px;
    height: 100%;
    overflow-y: auto;
    padding: 25px 30px 25px 25px;
    scrollbar-width: thin;
    scrollbar-color: #bdc3c7 transparent;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,250,252,0.95));
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.markdown-content h1 {
    color: #2c3e50;
    font-size: 28px;
    margin: 0 0 25px 0;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.markdown-content h2 {
    color: #34495e;
    font-size: 22px;
    margin: 30px 0 18px 0;
    border-left: 4px solid #3498db;
    padding: 12px 0 12px 20px;
    font-weight: 600;
    background: linear-gradient(90deg, rgba(52,152,219,0.1), transparent);
    border-radius: 0 5px 5px 0;
}

.markdown-content h3 {
    color: #34495e;
    font-size: 18px;
    margin: 25px 0 15px 0;
    font-weight: 600;
    position: relative;
}

.markdown-content h3::before {
    content: "▶ ";
    color: #3498db;
    font-size: 14px;
    margin-right: 8px;
}

.markdown-content h4 {
    color: #7f8c8d;
    font-size: 14px;
    margin: 20px 0 12px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.markdown-content p {
    margin-bottom: 18px;
    color: #2c3e50;
    line-height: 1.8;
}

.markdown-content ul, .markdown-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.markdown-content li {
    margin-bottom: 10px;
    color: #2c3e50;
    line-height: 1.7;
}

.markdown-content ul li::marker {
    color: #3498db;
    font-size: 1.2em;
}

.markdown-content ol li::marker {
    color: #3498db;
    font-weight: bold;
}

.markdown-content code {
    background: rgba(52, 152, 219, 0.15);
    color: #2980b9;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.markdown-content pre {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
    overflow-x: auto;
    margin: 15px 0;
    border-left: 4px solid #3498db;
}

.markdown-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.markdown-content blockquote {
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #7f8c8d;
    background: linear-gradient(90deg, rgba(52,152,219,0.05), transparent);
    border-radius: 0 8px 8px 0;
    position: relative;
}

.markdown-content blockquote::before {
    content: '\201C';
    font-size: 48px;
    color: rgba(52,152,219,0.3);
    position: absolute;
    left: 8px;
    top: -5px;
    font-family: Georgia, serif;
}

.markdown-content strong {
    color: #2c3e50;
    font-weight: 700;
    background: linear-gradient(120deg, rgba(52,152,219,0.1), transparent);
    padding: 1px 3px;
    border-radius: 2px;
}

.markdown-content em {
    color: #34495e;
    font-style: italic;
    background: rgba(142,68,173,0.1);
    padding: 1px 2px;
    border-radius: 2px;
}

.markdown-content em {
    color: #34495e;
    font-style: italic;
    background: rgba(142,68,173,0.1);
    padding: 1px 2px;
    border-radius: 2px;
}

.markdown-content hr {
    border: none;
    border-top: 2px solid #ecf0f1;
    margin: 30px 0;
}

/* Special styling for POINTS content */
#points-content {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
}

#points-content p {
    margin-bottom: 12px;
}

#points-content ul {
    margin: 0 0 15px 0;
    padding-left: 0;
    list-style: none;
}

#points-content > ul > li {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498db;
    border-radius: 4px;
    font-weight: 600;
    color: #2c3e50;
}

#points-content > ul > li > ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

#points-content > ul > li > ul > li {
    margin-bottom: 8px;
    padding: 6px 12px;
    background: rgba(52, 152, 219, 0.05);
    border-left: 2px solid #3498db;
    border-radius: 2px;
    font-weight: normal;
    color: #34495e;
    font-size: 12px;
    position: relative;
}

#points-content > ul > li > ul > li::before {
    content: "▸";
    color: #3498db;
    font-weight: bold;
    margin-right: 8px;
}

/* Modal content scrollbar */
.markdown-content::-webkit-scrollbar {
    width: 8px;
}

.markdown-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.markdown-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.markdown-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        height: 90%;
        max-height: none;
        margin: 20px auto;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .markdown-content {
        padding: 20px 15px;
        font-size: 14px;
    }
    
    #prompts-list {
        padding: 0;
    }
    
    .modal-prompt-item {
        padding: 15px;
        margin-bottom: 12px;
    }
}
