/* CSS Design System for TicketPay Documentation */

:root {
    --bg-color: #080c14;
    --card-bg: rgba(17, 24, 39, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary-indigo: #6366f1;
    --primary-emerald: #10b981;
    --primary-violet: #8b5cf6;
    
    --gradient-indigo-emerald: linear-gradient(135deg, var(--primary-indigo), var(--primary-emerald));
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Gradients */
.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.blob-1 {
    background: radial-gradient(circle, var(--primary-indigo) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.blob-2 {
    background: radial-gradient(circle, var(--primary-emerald) 0%, transparent 70%);
    bottom: -100px;
    left: -200px;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 12, 20, 0.7);
}

.header-container {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
}

.logo i {
    font-size: 1.6rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: var(--gradient-indigo-emerald);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

/* Hero Section */
.hero {
    padding: 4.5rem 0 3rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto;
}

/* Grids and Cards */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.card {
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.glass {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.portal-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

#card-student:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}

#card-driver:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

#card-admin:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

.portal-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.bg-indigo { background: rgba(99, 102, 241, 0.15); color: var(--primary-indigo); }
.bg-emerald { background: rgba(16, 185, 129, 0.15); color: var(--primary-emerald); }
.bg-violet { background: rgba(139, 92, 246, 0.15); color: var(--primary-violet); }

.portal-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.portal-card p {
    color: var(--text-secondary);
    font-size: 0.925rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-indigo { background: var(--primary-indigo); color: white; }
.btn-indigo:hover { background: #4f46e5; transform: scale(1.02); }

.btn-emerald { background: var(--primary-emerald); color: white; }
.btn-emerald:hover { background: #059669; transform: scale(1.02); }

.btn-violet { background: var(--primary-violet); color: white; }
.btn-violet:hover { background: #7c3aed; transform: scale(1.02); }

/* Credentials Section */
.credentials-section {
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    background: var(--gradient-indigo-emerald);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.badge {
    align-self: flex-start;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-violet { background: rgba(139, 92, 246, 0.15); color: var(--primary-violet); border: 1px solid rgba(139, 92, 246, 0.3); }
.badge-emerald { background: rgba(16, 185, 129, 0.15); color: var(--primary-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }

.credentials-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bg-emerald-box {
    border-color: rgba(16, 185, 129, 0.2);
}

.cred-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 0.5rem;
}

.cred-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cred-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cred-value {
    font-size: 0.875rem;
}

.font-mono {
    font-family: var(--font-mono);
}

.font-bold {
    font-weight: 600;
}

.italic {
    font-style: italic;
    color: var(--text-muted);
}

.btn-copy {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

/* Timeline / Walkthrough Guide */
.walkthrough-section {
    margin-bottom: 4rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--card-border);
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    position: relative;
}

.timeline-num {
    position: absolute;
    left: -2.75rem;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--primary-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-indigo);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.timeline-item:nth-child(2) .timeline-num { border-color: #7c3aed; color: #7c3aed; box-shadow: 0 0 10px rgba(124, 58, 237, 0.3); }
.timeline-item:nth-child(3) .timeline-num { border-color: #3b82f6; color: #3b82f6; box-shadow: 0 0 10px rgba(59, 130, 246, 0.3); }
.timeline-item:nth-child(4) .timeline-num { border-color: var(--primary-emerald); color: var(--primary-emerald); box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }

.timeline-content h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

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

.timeline-content a {
    text-decoration: none;
    font-weight: 600;
}

.link-violet { color: #a78bfa; }
.link-indigo { color: #818cf8; }
.link-emerald { color: #34d399; }

/* Technical Highlights / Tabs */
.highlights-section {
    margin-bottom: 5rem;
}

.tabs-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.15);
}

.tab-btn {
    flex-grow: 1;
    background: none;
    border: none;
    padding: 1rem;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: white;
    border-bottom-color: var(--primary-emerald);
    background: rgba(255, 255, 255, 0.04);
}

.tab-content-container {
    padding: 2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fade-in-tabs 0.4s ease;
}

.tab-content h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.tab-content p {
    color: var(--text-secondary);
    font-size: 0.925rem;
    margin-bottom: 1.5rem;
}

pre {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--card-border);
    padding: 1.25rem;
    border-radius: 12px;
    overflow-x: auto;
}

code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #e2e8f0;
}

/* Footer */
.footer {
    border-top: 1px solid var(--card-border);
    padding: 2.5rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.825rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInTabs {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-num {
        width: 24px;
        height: 24px;
        left: -2.35rem;
        font-size: 0.75rem;
    }
    
    .tabs {
        flex-direction: column;
    }
}
