﻿/* Shared Card Styles for Subscription and Top-Up Cards */
/* Following STYLE_GUIDE.md - Mobile-first design */

/* Base Card Styling */
.pricing-card {
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: rgba(15, 23, 41, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
}

.pricing-card.loading {
    opacity: 0.6;
    pointer-events: none;
}



/* Card Header with Gradient */
.pricing-card-header {
    background: transparent !important;
    border-bottom: none !important;
    padding: 1.5rem 1.25rem 0.875rem !important;
    position: relative;
}

/* Accent bar at top of card - uses inline color style if present */
.pricing-card-header[style*="border-top"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: inherit;
    border-top: inherit;
    box-shadow: 0 0 16px currentColor;
    opacity: 0.5;
}

/* Icon Styling */
.pricing-card-icon {
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
}

.pricing-card-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Title */
.pricing-card-title {
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 0;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Default bright color for titles without custom color */
.pricing-card-title:not([style*="color"]) {
    color: rgba(255, 255, 255, 0.95);
}

/* Enhanced glow for colored titles */
.pricing-card-title[style*="color"] {
    filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 0 12px currentColor);
}

/* Card Body */
.pricing-card .card-body {
    padding: 1rem !important;
    background: transparent;
    color: #ffffff;
}

/* Credits Display */
.pricing-credits-number {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 0.375rem;
    white-space: nowrap;
    overflow: visible;
}

.pricing-credits-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Description */
.pricing-description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

/* Features List */
.pricing-features {
    text-align: left;
    max-width: 100%;
    margin: 0 auto;
}

.pricing-feature-item {
    display: flex;
    align-items: center;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.pricing-feature-item i {
    flex-shrink: 0;
    font-size: 0.875rem;
}

/* Price Display */
.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.125rem;
}

.pricing-price-currency {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
    align-self: flex-start;
    margin-top: 0.25rem;
}

.pricing-price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.pricing-price-period {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    align-self: flex-end;
    margin-bottom: 0.125rem;
}

/* Card Footer */
.pricing-card .card-footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
}

.pricing-card .btn {
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9375rem;
    letter-spacing: 0.025em;
}

.pricing-card .btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.pricing-card .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

.pricing-card .btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.pricing-card .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .pricing-card-header {
        padding: 1rem 0.75rem !important;
    }

    .pricing-card-title {
        font-size: 1rem;
    }

    .pricing-credits-number {
        font-size: 1.5rem;
    }

    .pricing-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .pricing-price-amount {
        font-size: 1.75rem;
    }

    .pricing-price-currency {
        font-size: 1.125rem;
        margin-top: 0.1875rem;
    }

    .pricing-price-period {
        font-size: 0.75rem;
        margin-bottom: 0.0625rem;
    }

    .pricing-feature-item {
        font-size: 0.8125rem;
        padding: 0.25rem 0;
    }

    .pricing-feature-item i {
        font-size: 0.75rem;
    }

    .pricing-card .card-body {
        padding: 0.75rem !important;
    }

    .pricing-card .card-footer {
        padding: 0.75rem;
    }

    .pricing-card .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Tablet Optimizations */
@media (min-width: 768px) and (max-width: 991px) {
    .pricing-card-title {
        font-size: 1.0625rem;
    }

    .pricing-credits-number {
        font-size: 1.625rem;
    }

    .pricing-card-icon {
        width: 44px;
        height: 44px;
        font-size: 1.375rem;
    }

    .pricing-price-amount {
        font-size: 1.875rem;
    }

    .pricing-price-currency {
        font-size: 1.1875rem;
        margin-top: 0.21875rem;
    }
}

/* ============================================
   STANDARD DARK CARD HEADERS
   Following STYLE_GUIDE.md v2.0
   ============================================ */

.card-header-dark {
    background: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1.25rem 1.5rem;
    color: #ffffff;
}

.card-header-dark h5,
.card-header-dark h6 {
    color: #ffffff !important;
    font-weight: 600;
    margin: 0;
}

.card-header-dark i {
    color: #6366f1;
    margin-right: 0.5rem;
}

@media (max-width: 767px) {
    .card-header-dark {
        padding: 1rem 1.25rem;
    }
}

/* ============================================
   STAT CARD PATTERN
   ============================================ */

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.4);
}

.stat-card-icon {
    flex-shrink: 0;
}

.stat-card-content {
    flex: 1;
    min-width: 0;
}

.stat-card-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-card-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 767px) {
    .stat-card {
        padding: 1rem;
        gap: 0.875rem;
    }

    .stat-card-number {
        font-size: 1.5rem;
    }

    .stat-card-label {
        font-size: 0.75rem;
    }
}

/* ============================================
   MODULE CARD PATTERN (Navigation Cards)
   ============================================ */

.module-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.module-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.4);
    text-decoration: none;
    color: inherit;
}

.module-icon {
    flex-shrink: 0;
}

.module-content {
    flex: 1;
    min-width: 0;
}

.module-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.375rem;
}

.module-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.module-arrow {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
}

.module-card:hover .module-arrow {
    color: #6366f1;
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .module-card {
        padding: 1.25rem;
        gap: 1rem;
    }

    .module-title {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .module-card {
        padding: 1rem;
    }
}

/* ============================================
   FEATURE CARD PATTERN
   ============================================ */

.feature-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.4);
}

.feature-icon {
    margin: 0 auto 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.feature-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.feature-list li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
}

.feature-list li i {
    color: #4ade80;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .feature-card {
        padding: 2rem;
    }

    .feature-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 767px) {
    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        margin-bottom: 1rem;
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-description {
        font-size: 0.9375rem;
    }

    .feature-list li {
        font-size: 0.875rem;
        padding: 0.375rem 0;
    }
}

/* ============================================
   CARD SECTIONS
   ============================================ */

.card-section {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.card-footer-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-footer-actions.justify-end {
    justify-content: flex-end;
}

.card-footer-actions.justify-between {
    justify-content: space-between;
}

.card-footer-actions.justify-center {
    justify-content: center;
}

@media (max-width: 767px) {
    .card-footer-actions {
        flex-direction: column;
        padding: 1rem 1.25rem;
    }

    .card-footer-actions > * {
        width: 100%;
    }
}

/* ============================================
   LOAD MORE BUTTON - SHARED COMPONENT
   Shared between Logs.razor and Credits.razor
   ============================================ */

/* Load More Section */
.load-more-section {
    padding: 1rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

/* Load More Button */
.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.btn-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Optimizations for Load More */
@media (max-width: 767px) {
    .load-more-section {
        padding: 0.875rem 1rem;
    }

    .btn-load-more {
        width: 100%;
        justify-content: center;
        padding: 0.625rem;
    }
}
