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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #f5f5dc;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
}

header {
    padding: 2rem 1rem 1rem;
    color: white;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

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

.profile-image-container {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.profile-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    opacity: 0.8;
    white-space: nowrap;
    color: #cbd5e1;
}

.header-text {
    text-align: center;
    flex: 1;
    min-width: 250px;
}

.header-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-text p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.01em;
    color: #cbd5e1;
}

/* Navigation Styles */
.main-nav {
    padding: 1rem 0 0;
    background: transparent;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-button:hover::before {
    opacity: 1;
}

.nav-button svg {
    transition: transform 0.3s ease;
}

.nav-button:hover svg {
    transform: translateY(-2px);
}

.nav-button span {
    position: relative;
    z-index: 1;
}

/* GitHub Button - Enhanced Boutique Style */
.github-btn {
    background: linear-gradient(135deg, #1a2332 0%, #0d1419 100%);
    color: #d4af37;
    border: 2px solid #d4af37;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25), inset 0 1px 0 rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.github-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.github-btn:hover::before {
    left: 100%;
}

.github-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4), 0 0 30px rgba(212, 175, 55, 0.2);
    background: linear-gradient(135deg, #243447 0%, #1a2332 100%);
}

.github-btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.github-btn svg {
    fill: #d4af37;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

/* README Button - Enhanced Boutique Style */
.readme-btn {
    background: linear-gradient(135deg, #2d5a5a 0%, #1a3a3a 100%);
    color: #f5f5dc;
    border: 2px solid #f5f5dc;
    box-shadow: 0 4px 20px rgba(45, 90, 90, 0.3), inset 0 1px 0 rgba(245, 245, 220, 0.2);
    position: relative;
    overflow: hidden;
}

.readme-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 245, 220, 0.15), transparent);
    transition: left 0.5s ease;
}

.readme-btn:hover::before {
    left: 100%;
}

.readme-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 40px rgba(45, 90, 90, 0.5), 0 0 30px rgba(45, 90, 90, 0.3);
    background: linear-gradient(135deg, #3d6a6a 0%, #2d5a5a 100%);
}

.readme-btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 6px 20px rgba(45, 90, 90, 0.4);
}

.readme-btn svg {
    stroke: #f5f5dc;
    filter: drop-shadow(0 2px 4px rgba(45, 90, 90, 0.3));
}

/* Active state for buttons */
.nav-button:active {
    transform: translateY(-1px) scale(1.01);
}

/* Focus styles for accessibility */
.nav-button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-image-container {
        width: 100px;
        height: 100px;
    }
    
    .header-text h1 {
        font-size: 2rem;
    }
    
    .header-text p {
        font-size: 1rem;
    }
    
    .nav-container {
        gap: 0.75rem;
    }
    
    .nav-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .nav-button svg {
        width: 16px;
        height: 16px;
    }
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

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

#searchInput {
    padding: 0.8rem 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a202c;
    font-weight: 500;
}

#searchInput:focus {
    outline: none;
    transform: translateY(-2px);
    border-color: #0ea5e9;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.25);
    background: white;
}

.repos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.6s ease-in;
    max-width: 1400px;
    margin: 0 auto;
}

.repo-card {
    background: #1e293b;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.repo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6);
}

.repo-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6);
    opacity: 0.3;
}

.repo-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.repo-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #f1f5f9;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 700;
}

.repo-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #0ea5e9;
}

/* Screenshot Styles */
.repo-screenshot {
    width: 100%;
    height: 180px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.repo-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.repo-screenshot img.loaded {
    opacity: 1;
}

.repo-card:hover .repo-screenshot img {
    transform: scale(1.05);
}

.repo-screenshot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.repo-card:hover .repo-screenshot::before {
    opacity: 1;
}

/* Fallback placeholder for missing screenshots */
.repo-screenshot.missing {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.repo-screenshot.missing::after {
    content: 'No Preview';
    position: relative;
    z-index: 2;
}

.repo-card p {
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.repo-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.language-badge {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.language-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.stars {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    width: 100%;
    justify-content: space-between;
}

.stars svg {
    width: 20px;
    height: 20px;
    fill: #fbbf24;
    margin-right: 0.3rem;
}

.repo-card .stars span {
    font-weight: 600;
    color: #e2e8f0;
}

/* Repository Card Buttons - Boutique Style */
.repo-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.repo-homepage,
.repo-readme,
.repo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.repo-homepage::before,
.repo-readme::before,
.repo-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.repo-homepage:hover::before,
.repo-readme:hover::before,
.repo-link:hover::before {
    left: 100%;
}

/* Homepage Button - Gold Accent */
.repo-homepage {
    background: linear-gradient(135deg, #1a2332 0%, #0d1419 100%);
    color: #d4af37;
    border: 2px solid #d4af37;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.25);
}

.repo-homepage:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #243447 0%, #1a2332 100%);
}

.repo-homepage:active {
    transform: translateY(0) scale(1.01);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

/* README Button - Teal Accent */
.repo-readme {
    background: linear-gradient(135deg, #2d5a5a 0%, #1a3a3a 100%);
    color: #f5f5dc;
    border: 2px solid #f5f5dc;
    box-shadow: 0 2px 10px rgba(45, 90, 90, 0.3);
}

.repo-readme:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(45, 90, 90, 0.5);
    background: linear-gradient(135deg, #3d6a6a 0%, #2d5a5a 100%);
}

.repo-readme:active {
    transform: translateY(0) scale(1.01);
    box-shadow: 0 2px 10px rgba(45, 90, 90, 0.4);
}

/* GitHub Link - Navy Accent */
.repo-link {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #94a3b8;
    border: 2px solid #475569;
    box-shadow: 0 2px 10px rgba(71, 85, 105, 0.25);
}

.repo-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(71, 85, 105, 0.4);
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    color: #cbd5e1;
    border-color: #64748b;
}

.repo-link:active {
    transform: translateY(0) scale(1.01);
    box-shadow: 0 2px 10px rgba(71, 85, 105, 0.3);
}

/* Focus styles for accessibility */
.repo-homepage:focus-visible,
.repo-readme:focus-visible,
.repo-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Responsive adjustments for repo buttons */
@media (max-width: 768px) {
    .repo-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .repo-homepage,
    .repo-readme,
    .repo-link {
        justify-content: center;
        width: 100%;
    }
}

.loading, .error, .no-results {
    text-align: center;
    padding: 4rem 1rem;
    color: #f5f5dc;
    font-size: 1.2rem;
}

.error {
    color: #f87171;
    font-weight: 600;
}

.no-results {
    color: #cbd5e1;
}


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

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

footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #f5f5dc;
    opacity: 0.95;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .search-section {
        flex-direction: column;
        align-items: stretch;
    }

    #searchInput {
        min-width: auto;
    }

    .repos-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Modal styles - Boutique Enhanced */
.readme-modal,
.homepage-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in;
    backdrop-filter: blur(8px);
}

.homepage-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 1400px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.1);
    position: relative;
    border: 2px solid rgba(212, 175, 55, 0.2);
}

.homepage-url {
    font-size: 1.1rem;
    color: #d4af37;
    margin-bottom: 1.5rem;
    word-break: break-all;
    font-weight: 600;
    background: rgba(212, 175, 55, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.homepage-preview {
    width: 100%;
    height: 95vh;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #0f172a;
}

.homepage-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #0f172a;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

.homepage-loading p {
    text-align: center;
    color: #f5f5dc;
    margin-top: 15px;
    font-weight: 500;
}

.homepage-error {
    text-align: center;
    color: #f87171;
    padding: 25px;
    background: rgba(248, 113, 113, 0.1);
    border-radius: 12px;
    margin-top: 25px;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.homepage-error button {
    background: linear-gradient(135deg, #d4af37 0%, #b89628 100%);
    color: #1a2332;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.homepage-error button:hover {
    background: linear-gradient(135deg, #e5c047 0%, #d4af37 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.readme-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(45, 90, 90, 0.2);
    position: relative;
    border: 2px solid rgba(45, 90, 90, 0.3);
}

.repo-description-modal {
    background: linear-gradient(135deg, rgba(45, 90, 90, 0.2) 0%, rgba(26, 58, 58, 0.3) 100%);
    border-left: 4px solid #2d5a5a;
    padding: 1.25rem 1.75rem;
    margin: 1.5rem 0 2rem 0;
    border-radius: 12px;
    color: #f5f5dc;
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    font-weight: 500;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    transform: rotate(90deg);
}

.readme-content {
    margin-top: 2rem;
    line-height: 1.7;
    color: #f5f5dc;
}

.readme-content h1 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: #d4af37;
    font-weight: 700;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 0.5rem;
}

.readme-content h2 {
    font-size: 1.6rem;
    margin: 1.75rem 0 1.25rem 0;
    color: #f5f5dc;
    font-weight: 600;
    border-left: 4px solid #2d5a5a;
    padding-left: 1rem;
}

.readme-content h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
    color: #e2e8f0;
    font-weight: 600;
}

.readme-content p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.readme-content code {
    background: rgba(45, 90, 90, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #d4af37;
    border: 1px solid rgba(45, 90, 90, 0.3);
}

.readme-content pre {
    background: rgba(15, 23, 42, 0.8);
    padding: 1.25rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.25rem 0;
    border: 1px solid rgba(45, 90, 90, 0.3);
}

.readme-content pre code {
    background: none;
    padding: 0;
    color: #f5f5dc;
}

.readme-content ul, .readme-content ol {
    margin: 1.25rem 0;
    padding-left: 2rem;
}

.readme-content li {
    margin-bottom: 0.75rem;
    color: #e2e8f0;
}

.readme-content a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.readme-content a:hover {
    color: #e5c047;
    border-bottom-color: #d4af37;
}

.readme-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.25rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.readme-content blockquote {
    border-left: 4px solid #d4af37;
    padding-left: 1.25rem;
    margin: 1.25rem 0;
    color: #cbd5e1;
    font-style: italic;
    background: rgba(212, 175, 55, 0.05);
    padding: 1rem 1.25rem;
    border-radius: 8px;
}

.readme-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.readme-content th, .readme-content td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.875rem;
    text-align: left;
}

.readme-content th {
    background: rgba(45, 90, 90, 0.2);
    font-weight: 600;
    color: #d4af37;
}

.readme-content td {
    color: #e2e8f0;
}

.readme-content hr {
    border: none;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    margin: 2rem 0;
}

/* Streamlit-specific modal enhancements */
.streamlit-warning {
    background: rgba(212, 175, 55, 0.15) !important;
    border: 2px solid rgba(212, 175, 55, 0.4) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 1.5rem !important;
    color: #d4af37 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    backdrop-filter: blur(4px);
    line-height: 1.6 !important;
}

.streamlit-warning strong {
    color: #e5c047;
    font-weight: 700;
    font-size: 1.1rem !important;
    display: block !important;
    margin-bottom: 10px !important;
}

.streamlit-warning p {
    margin-bottom: 12px !important;
    color: #d4af37 !important;
}

.streamlit-warning p:last-child {
    margin-bottom: 0 !important;
}

.streamlit-fallback {
    text-align: center !important;
    padding: 1.5rem !important;
    background: rgba(15, 23, 42, 0.4) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.open-external-btn {
    background: linear-gradient(135deg, #d4af37 0%, #b89628 100%) !important;
    color: #1a2332 !important;
    border: none !important;
    padding: 14px 28px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4) !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.02em !important;
    position: relative !important;
    overflow: hidden !important;
}

.open-external-btn span {
    position: relative !important;
    z-index: 1 !important;
}

.open-external-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.open-external-btn:hover::before {
    left: 100%;
}

.open-external-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5) !important;
    background: linear-gradient(135deg, #e5c047 0%, #d4af37 100%) !important;
}

.open-external-btn:active {
    transform: translateY(0) scale(1.01) !important;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4) !important;
}

/* Streamlit fallback text styling */
.streamlit-fallback p {
    margin-top: 12px !important;
    font-size: 0.9rem !important;
    color: #cbd5e1 !important;
    font-weight: 500 !important;
}

/* Enhanced error styling for Streamlit */
.homepage-error p {
    color: #f87171 !important;
    background: rgba(248, 113, 113, 0.1) !important;
    padding: 12px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(248, 113, 113, 0.3) !important;
}

/* Modal content adjustments for better Streamlit handling */
.homepage-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 1400px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.1);
    position: relative;
    border: 2px solid rgba(212, 175, 55, 0.2);
}

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

/* Enhanced iframe styling for non-Streamlit apps */
.homepage-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #0f172a;
    border-radius: 0 0 12px 12px;
}

/* Enhanced error button styling for non-Streamlit apps */
.homepage-error button {
    background: linear-gradient(135deg, #d4af37 0%, #b89628 100%) !important;
    color: #1a2332 !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    margin-left: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3) !important;
}

.homepage-error button:hover {
    background: linear-gradient(135deg, #e5c047 0%, #d4af37 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4) !important;
}

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