/* ============================================
   POKER ANALYZER - COMPONENTS
   Reusable UI components
   ============================================ */

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

/* Primary Button */
.btn-primary {
    background: var(--gradient-gold);
    color: var(--text-inverse);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-gold);
    color: var(--text-inverse);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Ghost/Outline Button */
.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.btn-ghost:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: var(--text-inverse);
}

/* Glass Button */
.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-medium);
}

/* Button Sizes */
.btn-small {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-xlarge {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-xl);
}

.btn-block {
    width: 100%;
}

/* Button with icon/meta */
.btn .btn-icon {
    font-size: 1.2em;
}

.btn .btn-meta {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--font-normal);
    opacity: 0.7;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--card-white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    color: var(--text-inverse);
}

.card-back {
    background: linear-gradient(135deg, #8b0000 0%, #5c0000 50%, #8b0000 100%);
    position: relative;
    overflow: hidden;
}

.card-back::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: calc(var(--radius-card) - 4px);
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 4px,
        rgba(0, 0, 0, 0.1) 4px,
        rgba(0, 0, 0, 0.1) 8px
    );
}

/* Playing Card Component */
.playing-card {
    width: 60px;
    height: 84px;
    background: var(--gradient-card);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: var(--font-bold);
    font-size: var(--text-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.playing-card .card-rank {
    font-size: var(--text-lg);
}

.playing-card .card-suit {
    font-size: var(--text-2xl);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    background: rgba(13, 8, 8, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo .logo-icon {
    color: var(--gold-primary);
    font-size: 1.3em;
}

.nav-logo .logo-accent {
    color: var(--gold-primary);
}

/* Nav Links */
.nav-links {
    display: none;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Nav Dropdown */
.nav-item {
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: var(--space-2);
}

.nav-link-dropdown {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-caret {
    font-size: 0.8em;
    opacity: 0.7;
    transition: transform var(--transition-fast);
}

.nav-menu {
    position: absolute;
    top: 100%;
    left: -8px;
    margin-top: var(--space-2);
    min-width: 220px;
    padding: var(--space-3);
    border-radius: var(--radius-xl);
    background: rgba(13, 8, 8, 0.95);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
    display: none;
    flex-direction: column;
    gap: var(--space-2);
    z-index: var(--z-nav);
}

.nav-menu a {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.nav-menu a:hover {
    background: rgba(212, 175, 55, 0.12);
    color: var(--text-primary);
}

.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu {
    display: flex;
}

.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret {
    transform: rotate(180deg);
}

/* Nav Actions */
.nav-actions {
    display: none;
    align-items: center;
    gap: var(--space-3);
}

/* Logged-in nav user menu */
.nav-user-menu {
    position: relative;
}

.nav-user-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.nav-user-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gradient-gold);
    color: var(--text-inverse);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
}

.nav-user-email {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-2);
    min-width: 180px;
    padding: var(--space-2);
    background: rgba(13, 8, 8, 0.95);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
    display: none;
    flex-direction: column;
    gap: var(--space-1);
    z-index: var(--z-dropdown);
}

.nav-user-dropdown.open {
    display: flex;
}

.nav-user-dropdown a,
.nav-user-dropdown button {
    display: block;
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: none;
    border: none;
    font: inherit;
}

.nav-user-dropdown a:hover,
.nav-user-dropdown button:hover {
    background: rgba(212, 175, 55, 0.12);
    color: var(--text-primary);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
}

/* Desktop Nav */
@media (min-width: 992px) {
    .nav-links,
    .nav-actions {
        display: flex;
    }
    
    .nav-toggle {
        display: none;
    }
}

@media (max-width: 991px) {
    .nav-user-email {
        display: none;
    }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-16);
}

.section-tag {
    display: inline-block;
    padding: var(--space-1) var(--space-4);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-full);
    color: var(--gold-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, #f5f5f5 0%, #a3a3a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .section-title {
        font-size: var(--text-5xl);
    }
}

.section-desc {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

/* ============================================
   FLOAT CARDS (for feature sections)
   ============================================ */
.float-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    max-width: 280px;
    box-shadow: var(--shadow-lg);
}

.float-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.float-card h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.float-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   POKER TABLE COMPONENTS
   ============================================ */
.table-oval {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 2 / 1;
    margin: 0 auto;
}

.table-rail {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #3d2820 0%, #2a1a12 50%, #1f120c 100%);
    border-radius: 50%;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.5),
        0 20px 40px rgba(0, 0, 0, 0.5);
}

.table-felt {
    position: absolute;
    inset: 12px;
    background: var(--gradient-felt);
    border-radius: 50%;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.table-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.pot-area {
    margin-bottom: var(--space-4);
}

.pot-label {
    display: block;
    font-size: var(--text-xs);
    color: var(--gold-muted);
    letter-spacing: 0.2em;
}

.pot-amount {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--gold-primary);
    text-shadow: var(--glow-gold);
}

.community-cards {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
}

.card-community {
    width: 40px;
    height: 56px;
    background: var(--gradient-card);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
    color: var(--suit-spades);
    box-shadow: var(--shadow-md);
}

/* Seat */
.seat {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
}

.seat-avatar {
    width: 40px;
    height: 40px;
    background: var(--felt-tertiary);
    border-radius: 50%;
    border: 2px solid var(--border-light);
}

.seat-info {
    text-align: center;
}

.seat-name {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.seat-stack {
    display: block;
    font-size: var(--text-xs);
    color: var(--gold-primary);
}

.hole-cards {
    display: flex;
    gap: 2px;
}

.card-hole {
    width: 24px;
    height: 34px;
    background: var(--gradient-card);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--suit-hearts);
    box-shadow: var(--shadow-sm);
}

.position-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold-primary);
    color: var(--text-inverse);
    font-size: 9px;
    font-weight: var(--font-bold);
    padding: 2px 5px;
    border-radius: var(--radius-sm);
}

.bet-amount {
    position: absolute;
    bottom: -20px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--gold-primary);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.dealer-button {
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    color: var(--text-inverse);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    box-shadow: var(--shadow-md);
}

/* Seat Positions */
.seat-1 { bottom: 5%; left: 50%; transform: translateX(-50%); }
.seat-2 { bottom: 20%; left: 15%; }
.seat-3 { top: 50%; left: 5%; transform: translateY(-50%); }

.dealer-button { bottom: 25%; left: 55%; }

/* ============================================
   PRICING COMPONENTS
   ============================================ */
.pricing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--border-gold);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, var(--bg-secondary) 100%);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: var(--text-inverse);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.pricing-header h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

.pricing-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}

.pricing-price .currency {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    color: var(--gold-primary);
}

.pricing-price .amount {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    line-height: 1;
}

.pricing-price .period {
    font-size: var(--text-base);
    color: var(--text-secondary);
    align-self: flex-end;
    margin-bottom: var(--space-2);
}

.pricing-save {
    font-size: var(--text-sm);
    color: var(--color-success);
    margin-top: var(--space-2);
}

.pricing-features {
    margin-bottom: var(--space-8);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
}

.pricing-features .check {
    color: var(--color-success);
}

.pricing-features .cross {
    color: var(--color-danger);
}

.pricing-features li.disabled {
    color: var(--text-muted);
}

.pricing-guarantee {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-4);
}

/* Chip Stack Visual */
.pricing-chip-stack {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-6);
    height: 60px;
}

.chips {
    position: relative;
    width: 40px;
}

.chips::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: calc(var(--chips) * 6px);
    background: repeating-linear-gradient(
        0deg,
        #8b0000 0px,
        #5c0000 3px,
        #8b0000 6px
    );
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.chips::after {
    content: '';
    position: absolute;
    bottom: calc(var(--chips) * 6px);
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 6px;
    background: #a52a2a;
    border-radius: 50%;
    border: 2px solid var(--gold-muted);
}

.pricing-chip-stack.gold .chips::after {
    border-color: var(--gold-primary);
    background: #d4af37;
}

.pricing-chip-stack.diamond .chips::after {
    border-color: #e5e7eb;
    background: #9ca3af;
}

/* ============================================
   FAQ COMPONENTS
   ============================================ */
.faq-item {
    border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-6) 0;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    text-align: left;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--gold-primary);
}

.faq-icon {
    font-size: var(--text-xl);
    color: var(--gold-primary);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding-bottom: var(--space-6);
    color: var(--text-secondary);
}

/* ============================================
   TESTIMONIAL COMPONENTS
   ============================================ */
.testimonial-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
}

.testimonial-stars {
    color: var(--gold-primary);
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: var(--leading-relaxed);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: var(--gradient-gold);
    color: var(--text-inverse);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
}

.author-name {
    display: block;
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.author-title {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ============================================
   FOOTER COMPONENTS
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--space-16);
    padding-bottom: var(--space-8);
}

.footer-grid {
    display: grid;
    gap: var(--space-10);
    margin-bottom: var(--space-16);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr repeat(4, 1fr);
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.footer-logo .logo-icon {
    color: var(--gold-primary);
}

.footer-logo .logo-accent {
    color: var(--gold-primary);
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: var(--space-4);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--gold-primary);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-links h4 {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold-primary);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.footer-disclaimer {
    margin-top: var(--space-2);
    font-size: var(--text-xs);
}
