/* ==========================================================================
   Upclass Meet - Pages Styles (API, Pricing, About, Legal)
   ========================================================================== */

/* Base Variables (inherit from home.css) */
.page-api,
.page-pricing,
.page-about,
.page-legal {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --accent-light: #eef2ff;
    
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* ==========================================================================
   Navigation (shared across all pages)
   ========================================================================== */

.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 12px;
    font-size: 1.125rem;
    color: white;
}

.brand-highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #6366f1;
}

.navbar .btn-outline-primary {
    color: #6366f1;
    border-color: #6366f1;
    font-weight: 500;
}

.navbar .btn-outline-primary:hover {
    background: #6366f1;
    color: white;
}

/* ==========================================================================
   Page Header
   ========================================================================== */

.page-header {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-light);
    border: 1px solid #c7d2fe;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6366f1;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

/* Legal page header variant */
.legal-header {
    padding: 140px 0 60px;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   API Page Specific
   ========================================================================== */

.api-key-notice {
    padding: 0 0 60px;
    background: var(--bg-secondary);
}

.notice-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border: 1px solid #c7d2fe;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.08);
}

.notice-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 20px;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.notice-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.notice-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.notice-content .btn-primary {
    background: var(--accent-gradient);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* API Content Section */
.api-content {
    padding: 60px 0 100px;
}

.api-sidebar {
    position: sticky;
    top: 100px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: var(--accent-light);
    color: #6366f1;
    font-weight: 500;
}

/* API Section */
.api-section {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
}

.api-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.api-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.api-section-title i {
    color: #6366f1;
}

.api-description {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.api-description code {
    background: var(--bg-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #6366f1;
}

/* Endpoint Badge */
.endpoint-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.endpoint-badge .method {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.endpoint-badge .method.get {
    background: #dcfce7;
    color: #16a34a;
}

.endpoint-badge .method.post {
    background: #dbeafe;
    color: #2563eb;
}

.endpoint-badge .method.delete {
    background: #fee2e2;
    color: #dc2626;
}

.endpoint-badge code {
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
}

/* Code Block */
.code-block {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.code-block.success {
    border: 1px solid #22c55e;
}

.code-block.error {
    border: 1px solid #ef4444;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #0f172a;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.copy-btn:hover {
    color: white;
}

.code-block pre {
    margin: 0;
    padding: 1.25rem;
    overflow-x: auto;
}

.code-block code {
    color: #e2e8f0;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Params Table */
.api-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

.params-table {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.params-table table {
    width: 100%;
    border-collapse: collapse;
}

.params-table th,
.params-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.params-table th {
    background: var(--bg-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.params-table td {
    font-size: 0.9375rem;
}

.params-table code {
    background: var(--bg-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #6366f1;
}

/* ==========================================================================
   Pricing Page Specific
   ========================================================================== */

.pricing-section {
    padding: 0 0 80px;
    background: var(--bg-secondary);
}

.pricing-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: #6366f1;
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.15);
}

.pricing-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.pricing-price {
    margin-bottom: 2rem;
}

.pricing-price .currency {
    font-size: 2rem;
    font-weight: 600;
    vertical-align: top;
    color: var(--text-primary);
}

.pricing-price .amount {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-price .period {
    display: block;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

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

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: #22c55e;
    font-size: 1.25rem;
}

.pricing-card .btn-primary {
    background: var(--accent-gradient);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.0625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Pricing How Section */
.pricing-how-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-light);
    border: 1px solid #c7d2fe;
    border-radius: 100px;
    color: #6366f1;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.how-card {
    text-align: center;
    padding: 2rem;
}

.how-number {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 16px;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.how-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

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

/* Enterprise Section */
.enterprise-section {
    padding: 0 0 80px;
}

.enterprise-card {
    background: var(--accent-gradient);
    border-radius: 24px;
    padding: 3rem;
    color: white;
}

.enterprise-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.enterprise-card p {
    opacity: 0.9;
    font-size: 1.125rem;
    margin: 0;
}

.enterprise-card .btn-light {
    background: white;
    color: #6366f1;
    padding: 1rem 2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.accordion-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    font-size: 1.0625rem;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: white;
    color: #6366f1;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

.accordion-body {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   About Page Specific
   ========================================================================== */

.about-mission {
    padding: 80px 0;
}

.mission-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.mission-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.visual-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.visual-card:hover {
    border-color: #c7d2fe;
    transform: translateX(8px);
}

.visual-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: 14px;
    font-size: 1.5rem;
    color: #6366f1;
    flex-shrink: 0;
}

.visual-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.visual-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.value-card {
    height: 100%;
    padding: 2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: #c7d2fe;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.08);
}

.value-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: 16px;
    font-size: 1.75rem;
    color: #6366f1;
    margin: 0 auto 1.25rem;
}

.value-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
}

/* Tech Section */
.tech-section {
    padding: 80px 0;
}

.tech-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.tech-content p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 1rem;
}

.tech-list i {
    color: #22c55e;
    font-size: 1.25rem;
}

.tech-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-diagram {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 20px;
}

.tech-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tech-node.user i {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: 50%;
    font-size: 2rem;
    color: #6366f1;
}

.tech-node span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.tech-connection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.connection-line {
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.tech-connection span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6366f1;
}

/* About CTA */
.about-cta {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.cta-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
}

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

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

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

.cta-buttons .btn-primary {
    background: var(--accent-gradient);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-buttons .btn-outline-primary {
    border: 2px solid #6366f1;
    color: #6366f1;
    padding: 1rem 2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-buttons .btn-outline-primary:hover {
    background: #6366f1;
    color: white;
}

/* ==========================================================================
   Legal Pages (Terms, Privacy, Cookie, Refund)
   ========================================================================== */

.legal-content {
    padding: 60px 0 100px;
}

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

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

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

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

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

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

.legal-section a {
    color: #6366f1;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Cookie Table */
.cookie-table {
    overflow-x: auto;
    margin: 1rem 0 1.5rem;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cookie-table th {
    background: var(--bg-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.cookie-table td {
    font-size: 0.9375rem;
}

/* ==========================================================================
   Footer (shared)
   ========================================================================== */

.footer {
    padding: 4rem 0 2rem;
    background: #0f172a;
    color: white;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-brand i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    color: #94a3b8;
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-heading {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

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

.footer-links-horizontal li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
}

.footer-copyright {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
    .notice-card {
        flex-direction: column;
        text-align: center;
    }
    
    .notice-content {
        text-align: center;
    }
    
    .api-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .tech-diagram {
        flex-direction: column;
    }
    
    .connection-line {
        width: 4px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 120px 0 60px;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .pricing-price .amount {
        font-size: 4rem;
    }
    
    .enterprise-card {
        padding: 2rem;
    }
    
    .cta-card {
        padding: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}
