﻿/* GriddyAI Fantasy Football - Victory Vibes Theme */
/* Bootstrap 5.3+ with custom Victory Vibes color scheme */

/* Import Fontshare Open Sauce */
@import url('https://api.fontshare.com/v2/css?f[]=open-sauce@500,600,700,400,300&display=swap');

/* New Color Scheme Variables - Modern Blue & White Theme */
:root {
    --bs-primary: #0855b1;
    --bs-primary-rgb: 8, 85, 177;
    --bs-secondary: #4fa5d8;
    --bs-secondary-rgb: 79, 165, 216;
    --bs-success: #0855b1;
    --bs-success-rgb: 8, 85, 177;
    --bs-info: #4fa5d8;
    --bs-info-rgb: 79, 165, 216;
    --bs-warning: #010e54;
    --bs-warning-rgb: 1, 14, 84;
    --bs-danger: #c62828;
    --bs-danger-rgb: 198, 40, 40;
    --bs-light: #ffffff;
    --bs-light-rgb: 255, 255, 255;
    --bs-dark: #00022b;
    --bs-dark-rgb: 0, 2, 43;
    /* Custom GriddyAI Colors */
    --griddy-primary: #0855b1;
    --griddy-secondary: #4fa5d8;
    --griddy-accent: #010e54;
    --griddy-error: #c62828;
    --griddy-neutral-light: #ffffff;
    --griddy-neutral-mid: #daeaf7;
    --griddy-dark-text: #00022b;
    --griddy-medium-text: #010e54;
    --griddy-border: #daeaf7;
    /* Typography */
    --griddy-font-family: 'Open Sauce', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --griddy-font-weight-bold: 700;
    --griddy-font-weight-semibold: 600;
    --griddy-font-weight-medium: 500;
    /* Spacing */
    --griddy-border-radius: 0.75rem;
    --griddy-border-radius-sm: 0.5rem;
    --griddy-border-radius-lg: 1rem;
    /* Shadows */
    --griddy-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --griddy-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --griddy-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --griddy-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --griddy-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}



/* Global Styles */

/* Bootstrap Gutter Override - More Specific */
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
  --bs-gutter-x: 0rem !important;
  --bs-gutter-y: 0rem !important;
}

* {
  box-sizing: border-box;
}

body {
    font-family: var(--griddy-font-family);
    background: linear-gradient(135deg, #daeaf7 0%, #ffffff 50%, #f8fafb 100%);
    color: var(--griddy-dark-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Custom Bootstrap Overrides */
.btn-primary {
  background-color: var(--griddy-primary);
  border-color: var(--griddy-primary);
  font-weight: var(--griddy-font-weight-medium);
  border-radius: var(--griddy-border-radius-sm);
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: #010e54;
  border-color: #010e54;
  transform: translateY(-1px);
  box-shadow: var(--griddy-shadow-md);
}

.btn-secondary {
  background-color: var(--griddy-secondary);
  border-color: var(--griddy-secondary);
  color: var(--griddy-dark-text);
  font-weight: var(--griddy-font-weight-medium);
  border-radius: var(--griddy-border-radius-sm);
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease-in-out;
}

.btn-secondary:hover {
  background-color: #7aa8c0;
  border-color: #7aa8c0;
  color: var(--griddy-neutral-light);
  transform: translateY(-1px);
  box-shadow: var(--griddy-shadow-md);
}

.btn-success {
  background-color: var(--griddy-accent);
  border-color: var(--griddy-accent);
  font-weight: var(--griddy-font-weight-medium);
  border-radius: var(--griddy-border-radius-sm);
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease-in-out;
}

.btn-success:hover {
  background-color: var(--griddy-accent);
  border-color: var(--griddy-accent);
  transform: translateY(-1px);
  box-shadow: var(--griddy-shadow-md);
}

.btn-accent {
  background-color: var(--griddy-accent);
  border-color: var(--griddy-accent);
  color: var(--griddy-neutral-light);
  font-weight: var(--griddy-font-weight-medium);
  border-radius: var(--griddy-border-radius-sm);
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease-in-out;
}

.btn-accent:hover {
  background-color: var(--griddy-accent);
  border-color: var(--griddy-accent);
  color: var(--griddy-neutral-light);
  transform: translateY(-1px);
  box-shadow: var(--griddy-shadow-md);
}

/* Card Customizations */
.card {
  border: 1px solid var(--griddy-border);
  border-radius:0px;
  box-shadow: var(--griddy-shadow);
  transition: all 0.2s ease-in-out;
  background-color: var(--griddy-neutral-light);
}

.card:hover {
  box-shadow: var(--griddy-shadow-lg);
  transform: translateY(-2px);
}

.card-header {
  background-color: white;
  font-weight: var(--griddy-font-weight-semibold);
  color: var(--griddy-dark-text);
  padding: 1rem 1.25rem;
  border-radius: var(--griddy-border-radius) var(--griddy-border-radius) 0 0;
}

.card-body {
  padding: 1.5rem;
}

.card-accented {
    border-left: 4px solid var(--griddy-primary) !important;
}

/* Form Customizations */
.form-control {
  border: 1px solid var(--griddy-border);
  border-radius: var(--griddy-border-radius-sm);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}

.form-control:focus {
  border-color: var(--griddy-primary);
  box-shadow: 0 0 0 0.2rem rgba(8, 85, 177, 0.25);
}

.form-label {
  font-weight: var(--griddy-font-weight-medium);
  color: var(--griddy-dark-text);
  margin-bottom: 0.5rem;
}

.form-select {
  border: 1px solid var(--griddy-border);
  border-radius: var(--griddy-border-radius-sm);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}

.form-select:focus {
  border-color: var(--griddy-primary);
  box-shadow: 0 0 0 0.2rem rgba(8, 85, 177, 0.25);
}

/* Table Customizations */
.table {
  border-radius: var(--griddy-border-radius);
  overflow: hidden;
  box-shadow: var(--griddy-shadow-sm);
}

.table thead th {
  background-color: var(--griddy-neutral-mid);
  border-bottom: 2px solid var(--griddy-border);
  font-weight: var(--griddy-font-weight-semibold);
  color: var(--griddy-dark-text);
  padding: 1rem;
}

.table tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--griddy-border);
  vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(248, 250, 252, 0.5);
}

.table-hover tbody tr:hover {
  background-color: rgba(147, 197, 253, 0.1);
}

/* Navbar Customizations */
.navbar {
  box-shadow: var(--griddy-shadow);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: var(--griddy-font-weight-bold);
  font-size: 1.5rem;
  color: var(--griddy-neutral-light) !important;
}

.navbar-nav .nav-link {
  font-weight: var(--griddy-font-weight-medium);
  transition: all 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover {
  color: var(--griddy-neutral-light) !important;
  transform: translateY(-1px);
}

/* Badge Customizations */
.badge {
  font-weight: var(--griddy-font-weight-medium);
  border-radius: var(--griddy-border-radius-sm);
  padding: 0.5rem 0.75rem;
}

.badge-primary {
  background-color: var(--griddy-primary);
  color: var(--griddy-light);
}

.badge-secondary {
  background-color: var(--griddy-secondary);
  color: var(--griddy-dark-text);
}

.badge-success {
  background-color: var(--griddy-accent);
  color: var(--griddy-neutral-light);
}

/* Alert Customizations */
.alert {
  border-radius: var(--griddy-border-radius);
  border: none;
  padding: 1rem 1.5rem;
  font-weight: var(--griddy-font-weight-medium);
}

.alert-primary {
  background-color: rgba(29, 78, 216, 0.1);
  color: var(--griddy-primary);
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--griddy-accent);
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: #D97706;
}

.alert-danger {
  background-color: rgba(198, 40, 40, 0.1);
  color: var(--griddy-error);
}

/* Modal Customizations */
.modal-content {
  border-radius: var(--griddy-border-radius-lg);
  border: none;
  box-shadow: var(--griddy-shadow-xl);
}

.modal-header {
  border-bottom: 1px solid var(--griddy-border);
  padding: 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--griddy-border);
  padding: 1.5rem;
}

/* Utility Classes */
.text-primary {
  color: var(--griddy-primary) !important;
}

.text-secondary {
  color: var(--griddy-secondary) !important;
}

.text-success {
  color: var(--griddy-accent) !important;
}

.text-error {
  color: var(--griddy-error) !important;
}

.text-dark-text {
  color: var(--griddy-dark-text) !important;
}

.text-medium-text {
  color: var(--griddy-medium-text) !important;
}

.bg-primary {
  background-color: var(--griddy-primary) !important;
}

.bg-secondary {
  background-color: var(--griddy-secondary) !important;
}

.bg-success {
  background-color: var(--griddy-accent) !important;
}

.bg-error {
  background-color: var(--griddy-error) !important;
}

.bg-neutral-light {
  background-color: var(--griddy-neutral-light) !important;
}

.bg-neutral-mid {
  background-color: var(--griddy-neutral-mid) !important;
}

.bg-light {
  background-color: var(--griddy-neutral-mid) !important;
}

/* Custom GriddyAI Components */

/* New Hero Section Styles */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #daeaf7 0%, #ffffff 50%, #f8fafb 100%);
    z-index: -2;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

.hero-content {
    color: var(--griddy-dark-text);
    z-index: 1;
    margin-left: 1rem;
}

.hero-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.robot-logo {
    max-width: 100px;
    height: auto;
    filter: drop-shadow(0 8px 25px rgba(8, 85, 177, 0.3));
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.robot-logo:hover {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 12px 35px rgba(8, 85, 177, 0.5));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--griddy-dark-text);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: .5rem;
    color: var(--griddy-medium-text);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: var(--griddy-primary);
    border-color: var(--griddy-primary);
    color: white;
}

.hero-buttons .btn-primary:hover {
    background: var(--griddy-accent);
    border-color: var(--griddy-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(8, 85, 177, 0.3);
}

.hero-buttons .btn-outline-light {
    border: 2px solid rgba(8, 85, 177, 0.3);
    color: var(--griddy-primary);
    background: transparent;
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(8, 85, 177, 0.1);
    border-color: rgba(8, 85, 177, 0.5);
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.laptop-mockup {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.laptop-screen {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.laptop-screen:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(2deg);
}

.screen-header {
    background: var(--griddy-primary);
    color: white;
    padding: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.screen-content {
    padding: 1.5rem;
}

.draft-section {
    margin-bottom: 1.5rem;
}

.draft-section h4 {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Draft Table Styles */
.draft-table {
    background: #f8fafc;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.draft-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background: var(--griddy-primary);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.draft-header span {
    padding: 0.75rem 0.5rem;
    text-align: center;
}

.draft-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.draft-row:last-child {
    border-bottom: none;
}

.draft-row:hover {
    background-color: #f1f5f9;
}

.draft-row span {
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.player-col {
    text-align: left !important;
    font-weight: 600;
    color: var(--griddy-dark-text);
}

.rank-col, .adp-col, .variance-col {
    font-weight: 500;
    color: var(--griddy-medium-text);
}

.rank-col {
    color: var(--griddy-secondary);
}

.adp-col {
    color: var(--griddy-secondary);
}

.variance-col {
    color: var(--griddy-accent);
}

/* Griddy Analysis Styles */
.griddy-analysis {
    background: rgba(79, 165, 216, 0.1);
    border: 1px solid var(--griddy-secondary);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.griddy-analysis p {
    color: var(--griddy-dark-text);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

.player-list {
    margin-bottom: 1rem;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.player-item:last-child {
    border-bottom: none;
}

.pick-number {
    font-weight: 600;
    color: var(--griddy-medium-text);
    min-width: 40px;
}

.player-info {
    flex: 1;
    margin: 0 1rem;
    color: var(--griddy-dark-text);
}

.rank-number {
    font-weight: 600;
    color: var(--griddy-primary);
    min-width: 30px;
    text-align: right;
}

.featured-player {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.featured-player strong {
    display: block;
    color: var(--griddy-dark-text);
    margin-bottom: 0.5rem;
}

.featured-player p {
    color: var(--griddy-medium-text);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.featured-player + .btn {
    background: var(--griddy-primary);
    border-color: var(--griddy-primary);
    color: white;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Responsive adjustments for hero */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .laptop-screen {
        transform: none;
        margin-top: 2rem;
    }
    
    .laptop-screen:hover {
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Blue Theme Section Styles */
.bg-dark-section {
    background: linear-gradient(135deg, #daeaf7 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.bg-dark-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(8, 85, 177, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 85, 177, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    z-index: 0;
}

.bg-darker-section {
    background: linear-gradient(135deg, #4fa5d8 0%, #daeaf7 100%);
    position: relative;
    overflow: hidden;
}

.bg-darker-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(8, 85, 177, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 85, 177, 0.05) 1px, transparent 1px);
    background-size: 150px 150px;
    z-index: 0;
}

/* Blue Card Styles */
.dark-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(79, 165, 216, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 6px -1px rgba(8, 85, 177, 0.1);
}

.dark-card-header {
    background: rgba(8, 85, 177, 0.9);
    border-bottom: 1px solid rgba(79, 165, 216, 0.3);
    color: white;
}

/* Blue Form Styles */
.dark-form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(79, 165, 216, 0.5);
    color: var(--griddy-dark-text);
    backdrop-filter: blur(10px);
}

.dark-form-select:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--griddy-primary);
    box-shadow: 0 0 0 0.2rem rgba(8, 85, 177, 0.25);
    color: var(--griddy-dark-text);
}

.dark-form-select option {
    background: #ffffff;
    color: var(--griddy-dark-text);
}

.dark-form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(79, 165, 216, 0.5);
    color: var(--griddy-dark-text);
    backdrop-filter: blur(10px);
}

.dark-form-control:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--griddy-primary);
    box-shadow: 0 0 0 0.2rem rgba(8, 85, 177, 0.25);
    color: var(--griddy-dark-text);
}

.dark-form-control::placeholder {
    color: rgba(0, 2, 43, 0.6);
}

/* Blue Checkbox Container */
.dark-checkbox-container {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(79, 165, 216, 0.4) !important;
    transition: all 0.2s ease;
}

.dark-checkbox-container:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(8, 85, 177, 0.5) !important;
}

/* Blue Empty State */
.dark-empty-state {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(79, 165, 216, 0.4);
}

/* Dark Player Card */
.dark-player-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

/* Text Colors for Blue Theme */
.text-light-subtitle {
    color: rgba(0, 2, 43, 0.7);
}

/* Stats Card Styles */
.stats-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(79, 165, 216, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(8, 85, 177, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(8, 85, 177, 0.15);
    border-color: rgba(8, 85, 177, 0.5);
}

/* Color Utilities */
.text-red-400 {
    color: #f87171 !important;
}

.text-primary-400 {
    color: var(--griddy-primary) !important;
}

.bg-red-900 {
    background-color: #7f1d1d !important;
}

.border-red-600 {
    border-color: #dc2626 !important;
}

.border-gray-600 {
    border-color: rgba(79, 165, 216, 0.5) !important;
}

.bg-blue-600 {
    background-color: #2563eb !important;
}

.text-yellow-400 {
    color: #facc15 !important;
}

.text-blue-400 {
    color: #60a5fa !important;
}

/* Ensure proper z-index layering */
.bg-dark-section > .container,
.bg-darker-section > .container {
    position: relative;
    z-index: 1;
}

/* Mobile-First Responsive Design */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        padding: 0.875rem 1.5rem;
    }
    
    .laptop-screen {
        transform: none;
        margin-top: 1.5rem;
        max-width: 100%;
    }
    
    .laptop-screen:hover {
        transform: none;
    }
    
    .dark-card {
        margin-bottom: 1rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .draft-table {
        font-size: 0.8rem;
    }
    
    .draft-header span,
    .draft-row span {
        padding: 0.5rem 0.25rem;
    }
}

/* Tablet Responsive Design */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .laptop-screen {
        transform: perspective(1000px) rotateY(-10deg) rotateX(3deg);
        max-width: 400px;
    }
    
    .laptop-screen:hover {
        transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
    }
}

/* Desktop Responsive Design */
@media (min-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .laptop-screen {
        transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
        max-width: 500px;
    }
    
    .laptop-screen:hover {
        transform: perspective(1000px) rotateY(-10deg) rotateX(2deg);
    }
}

/* High-DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-grid {
        background-size: 25px 25px;
    }
    
    .bg-dark-section::before {
        background-size: 50px 50px;
    }
    
    .bg-darker-section::before {
        background-size: 75px 75px;
    }
}

/* Dark Theme Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .robot-logo,
    .laptop-screen,
    .stats-card,
    .dark-card {
        animation: none;
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .text-light-subtitle {
        color: rgba(255, 255, 255, 0.95) !important;
    }
    
    .dark-card {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .dark-form-control {
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
}

.griddy-hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--griddy-primary) 0%, var(--griddy-neutral-mid) 100%);
}

.griddy-feature-card {
  background: var(--griddy-neutral-light);
  border-radius: var(--griddy-border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--griddy-shadow);
  transition: all 0.3s ease-in-out;
  height: 100%;
}

.griddy-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--griddy-shadow-xl);
}

.griddy-feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.griddy-stats-card {
  background: linear-gradient(135deg, var(--griddy-primary) 0%, var(--griddy-secondary) 100%);
  color: var(--griddy-neutral-light);
  border-radius: var(--griddy-border-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--griddy-shadow-lg);
}

.griddy-player-card {
  background: var(--griddy-neutral-light);
  border-radius: var(--griddy-border-radius);
  padding: 1.5rem;
  border-left: 4px solid var(--griddy-primary);
  box-shadow: var(--griddy-shadow);
  transition: all 0.2s ease-in-out;
}

.griddy-player-card:hover {
  box-shadow: var(--griddy-shadow-lg);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .griddy-hero {
    padding: 2rem 0;
  }
  
  .griddy-feature-card {
    margin-bottom: 1.5rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .table-responsive {
    border-radius: var(--griddy-border-radius);
  }
}

/* Loading States */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--griddy-light);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Blazor Error UI */
#blazor-error-ui {
  background: linear-gradient(135deg, var(--griddy-primary) 0%, var(--griddy-secondary) 100%);
  border-top: 3px solid #facc15;
  bottom: 0;
  box-shadow: var(--griddy-shadow-lg);
  display: none;
  left: 0;
  padding: 1rem 1.5rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
  border-radius: var(--griddy-border-radius) var(--griddy-border-radius) 0 0;
  color: white;
}

.dark-error-ui {
  background: linear-gradient(135deg, var(--griddy-primary) 0%, var(--griddy-secondary) 100%) !important;
  border-top: 3px solid #facc15 !important;
  color: white !important;
}

.dark-error-ui .alert-warning {
  background: transparent !important;
  color: white !important;
  border: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--griddy-neutral-mid);
}

::-webkit-scrollbar-thumb {
  background: var(--griddy-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--griddy-primary);
}

/* ==========================================================================
   ACCOUNT PAGES - Shared Styles
   ========================================================================== */

/* Account Page Container */
.account-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--griddy-primary) 0%, var(--griddy-secondary) 100%);
  padding: 2rem 1rem;
}

.account-card {
  background: var(--griddy-neutral-light);
  border-radius: var(--griddy-border-radius-lg);
  box-shadow: var(--griddy-shadow-xl);
  width: 100%;
  max-width: 450px;
  overflow: hidden;
}

.account-header {
  background: linear-gradient(135deg, var(--griddy-primary) 0%, var(--griddy-secondary) 100%);
  color: var(--griddy-light);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}

.account-title {
  font-size: 2rem;
  font-weight: var(--griddy-font-weight-bold);
  margin: 0 0 0.5rem 0;
  color: var(--griddy-neutral-light);
}

.account-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
  font-weight: var(--griddy-font-weight-medium);
}

.account-content {
  padding: 2rem;
}

.account-form {
  margin-bottom: 1.5rem;
}

/* Account Form Styling */
.account-container .form-group {
  margin-bottom: 1.5rem;
}

.account-container .form-label {
  display: block;
  font-weight: var(--griddy-font-weight-semibold);
  color: var(--griddy-dark-text);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.account-container .form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--griddy-border);
  border-radius: var(--griddy-border-radius-sm);
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
  background-color: var(--griddy-neutral-light);
}

.account-container .form-control:focus {
  outline: none;
  border-color: var(--griddy-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.checkbox-group {
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: var(--griddy-font-weight-medium);
  color: var(--griddy-dark-text);
}

.form-check-input {
  margin-right: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--griddy-primary);
}

.checkbox-text {
  font-size: 0.95rem;
}

/* Account Button Styling */
.account-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: var(--griddy-font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--griddy-border-radius-sm);
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.account-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--griddy-shadow-lg);
}

.btn-text {
  position: relative;
  z-index: 1;
}

/* Account Divider */
.account-divider {
  position: relative;
  text-align: center;
  margin: 2rem 0;
}

.account-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--griddy-border);
}

.divider-text {
  background: var(--griddy-neutral-light);
  padding: 0 1rem;
  color: var(--griddy-medium-text);
  font-size: 0.9rem;
  font-weight: var(--griddy-font-weight-medium);
  position: relative;
  z-index: 1;
}

/* External Login Section */
.external-login-section {
  margin-bottom: 2rem;
}

/* Account Links */
.account-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

.link-primary {
  color: var(--griddy-primary);
  text-decoration: none;
  font-weight: var(--griddy-font-weight-medium);
  transition: all 0.2s ease-in-out;
}

.link-primary:hover {
  color: #1E40AF;
  text-decoration: underline;
}

.link-secondary {
  color: var(--griddy-medium-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease-in-out;
}

.link-secondary:hover {
  color: var(--griddy-dark-text);
  text-decoration: underline;
}

/* External Login Picker Styles */
.no-external-logins {
  text-align: center;
  padding: 1rem;
}

.no-external-text {
  color: var(--griddy-medium-text);
  font-size: 0.9rem;
  margin: 0;
}

.external-login-form {
  width: 100%;
}

.external-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.external-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--griddy-border);
  border-radius: var(--griddy-border-radius-sm);
  background: var(--griddy-neutral-light);
  color: var(--griddy-dark-text);
  font-weight: var(--griddy-font-weight-medium);
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.external-login-btn:hover {
  border-color: var(--griddy-primary);
  background: rgba(29, 78, 216, 0.05);
  transform: translateY(-1px);
  box-shadow: var(--griddy-shadow-sm);
}

.external-login-btn:active {
  transform: translateY(0);
}

.external-login-btn.google {
  border-color: #4285F4;
  color: #4285F4;
}

.external-login-btn.google:hover {
  background: rgba(66, 133, 244, 0.1);
  border-color: #3367D6;
  color: #3367D6;
}

.external-login-btn.microsoft {
  border-color: #00A4EF;
  color: #00A4EF;
}

.external-login-btn.microsoft:hover {
  background: rgba(0, 164, 239, 0.1);
  border-color: #0078D4;
  color: #0078D4;
}

.external-login-btn.facebook {
  border-color: #1877F2;
  color: #1877F2;
}

.external-login-btn.facebook:hover {
  background: rgba(24, 119, 242, 0.1);
  border-color: #166FE5;
  color: #166FE5;
}

.provider-icon {
  flex-shrink: 0;
}

.google-icon {
  flex-shrink: 0;
}

.provider-text {
  font-weight: var(--griddy-font-weight-medium);
}

/* Account Pages Responsive Design */
@media (max-width: 576px) {
  .account-container {
    padding: 1rem;
  }
  
  .account-card {
    max-width: 100%;
  }
  
  .account-header {
    padding: 2rem 1.5rem 1.5rem;
  }
  
  .account-content {
    padding: 1.5rem;
  }
  
  .account-title {
    font-size: 1.75rem;
  }
  
  .external-login-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .provider-text {
    font-size: 0.9rem;
  }
}

/* Blue Account Page Styles */
.dark-account-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(79, 165, 216, 0.3);
  backdrop-filter: blur(15px);
}

.dark-account-header {
  background: linear-gradient(135deg, var(--griddy-primary) 0%, var(--griddy-secondary) 100%);
  border-bottom: 1px solid rgba(79, 165, 216, 0.3);
}

.dark-account-header .account-title {
  color: white;
}

.dark-account-header .account-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

/* Player Search Dropdown Styles */
.player-search-container {
  position: relative;
}

.player-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #ffffff;
  border: 1px solid rgba(79, 165, 216, 0.5);
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(8, 85, 177, 0.15), 0 10px 10px -5px rgba(8, 85, 177, 0.1);
  max-height: 300px;
  overflow-y: auto;
  margin-top: 2px;
  /* Ensure dropdown appears above card boundaries */
  position: fixed;
  transform: translateY(0);
}

.player-search-dropdown-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(79, 165, 216, 0.3);
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.player-search-dropdown-item:last-child {
  border-bottom: none;
}

.player-search-dropdown-item:hover {
  background-color: rgba(79, 165, 216, 0.1);
}

.player-search-dropdown-item .player-name {
  font-weight: 600;
  color: var(--griddy-dark-text);
  margin-bottom: 0.25rem;
}

.player-search-dropdown-item .player-details {
  font-size: 0.875rem;
  color: var(--griddy-medium-text);
  margin: 0;
}

/* Ensure dropdowns appear above other elements */
.position-relative {
  position: relative !important;
  overflow: visible !important;
}

/* High z-index for all dropdowns */
[style*="z-index: 9999"] {
  z-index: 9999 !important;
}

/* Ensure player search dropdowns are always on top */
.player-search-dropdown {
  z-index: 99999 !important;
  position: absolute !important;
}

/* Override any conflicting z-index values */
.player-search-dropdown[style*="z-index"] {
  z-index: 99999 !important;
}

/* Additional positioning safeguards */
.position-relative {
  overflow: visible !important;
}

/* Ensure dropdowns don't get clipped by parent containers */
.card-body {
  overflow: visible !important;
}

.card {
  overflow: visible !important;
}

.col-md-8, .col-12, .col-lg-6 {
  overflow: visible !important;
}

/* Force dropdown visibility above all other elements */
.player-search-dropdown {
  position: absolute !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  /* Ensure dropdown extends beyond card boundaries */
  transform: none !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

/* Specific fix for the Player Selection card */
.card .position-relative {
  overflow: visible !important;
}

/* Ensure the entire card structure allows overflow */
.dark-card {
  overflow: visible !important;
}

.dark-card .card-body {
  overflow: visible !important;
}

/* Fix for Bootstrap grid columns */
.row > [class*="col-"] {
  overflow: visible !important;
}

/* Feature Cards for Hero Section */
.feature-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(79, 165, 216, 0.2);
  border-radius: var(--griddy-border-radius);
  padding: 1.5rem;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  box-shadow: var(--griddy-shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--griddy-primary), var(--griddy-secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--griddy-shadow-lg);
  border-color: rgba(79, 165, 216, 0.4);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(8, 85, 177, 0.1), rgba(79, 165, 216, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease-in-out;
  align-self: center;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(8, 85, 177, 0.2), rgba(79, 165, 216, 0.2));
}

.feature-icon i {
  font-size: 1.5rem;
  color: var(--griddy-primary);
  transition: all 0.3s ease-in-out;
}

.feature-card:hover .feature-icon i {
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: var(--griddy-font-weight-bold);
  color: var(--griddy-dark);
  margin-bottom: 0.5rem;
  text-align: center;
  transition: color 0.3s ease-in-out;
}

.feature-card:hover .feature-title {
  color: var(--griddy-primary);
}

.feature-text {
  color: var(--griddy-text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0;
  text-align: center;
  transition: color 0.3s ease-in-out;
}

.feature-card:hover .feature-text {
  color: var(--griddy-text);
}

/* Mobile responsive adjustments for feature cards */
@media (max-width: 767px) {
  .feature-card {
    padding: 1rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
  }
  
  .feature-icon i {
    font-size: 1.25rem;
  }
  
  .feature-title {
    font-size: 1rem;
  }
  
  .feature-text {
    font-size: 0.85rem;
  }
}

/* Specific styling for NflPlayerComparison feature cards */
.nfl-comparison .feature-card {
  padding: 1.25rem;
  min-height: 140px;
}

.nfl-comparison .feature-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 0.75rem;
}

.nfl-comparison .feature-icon i {
  font-size: 1.25rem;
}

.nfl-comparison .feature-title {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.nfl-comparison .feature-text {
  font-size: 0.85rem;
  line-height: 1.3;
}

/* Griddy Thinking Popup Styles */
.griddy-thinking-popup {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(10px);
}

.griddy-thinking-popup .card {
  background: var(--griddy-dark) !important;
  border: 1px solid rgba(79, 165, 216, 0.3) !important;
  border-radius: var(--griddy-border-radius) !important;
  box-shadow: var(--griddy-shadow-lg) !important;
}

.griddy-thinking-popup .card-body {
  background: var(--griddy-dark) !important;
}

/* Ensure text is readable in the thinking popup */
.griddy-thinking-popup h4,
.griddy-thinking-popup .fw-bold {
  color: #ffffff !important;
}

.griddy-thinking-popup p,
.griddy-thinking-popup .text-light-subtitle {
  color: #e3f2fd !important; /* Light blue text */
}

.griddy-thinking-popup small,
.griddy-thinking-popup .text-light-subtitle {
  color: #bbdefb !important; /* Slightly darker light blue for smaller text */
}

.griddy-thinking-popup .spinner-border {
  color: #64b5f6 !important; /* Light blue spinner */
}

.griddy-feature-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.griddy-feature-icon img {
  max-height: 45px;
  width: auto;
}

/* Background Logo Styles */
.hero-background-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.background-robot-logo {
  width: 400px;
  height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

@keyframes float {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0px);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-20px);
  }
}

/* Logo pulse animation for xs screens */
.logo-pulse {
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  }
}

/* Hero Title and Branding Styles */
.hero-title {
  margin-top: 2rem;
  padding-top: 1rem;
}

.brand-logo {
  font-size: 3.5rem;
  font-weight: var(--griddy-font-weight-bold);
  letter-spacing: -0.02em;
}

.griddy-text {
  color: var(--griddy-primary);
  margin-right: 0.25rem;
}

.ai-text {
  color: var(--griddy-dark-text);
}

.hero-title h1 {
  font-size: 2.75rem;
  font-weight: var(--griddy-font-weight-bold);
  color: var(--griddy-dark-text);
  line-height: 1.2;
}

/* Responsive adjustments for hero title */
@media (max-width: 1200px) {
  .hero-title {
    margin-top: 1.5rem;
    padding-top: 0.75rem;
  }
  
  .brand-logo {
    font-size: 3.25rem;
  }
  
  .hero-title h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    margin-top: 1rem;
    padding-top: 0.5rem;
  }
  
  .brand-logo {
    font-size: 3rem;
  }
  
  .hero-title h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    margin-top: 0.75rem;
    padding-top: 0.25rem;
  }
  
  .brand-logo {
    font-size: 2.75rem;
  }
  
  .hero-title h1 {
    font-size: 2rem;
  }
}

/* Responsive adjustments for background logo */
@media (max-width: 1200px) {
  .background-robot-logo {
    width: 350px;
    height: 350px;
  }
}

@media (max-width: 768px) {
  .background-robot-logo {
    width: 250px;
    height: 250px;
  }
  
  .hero-background-logo {
    opacity: 0.1;
  }
}

/* Responsive adjustments for feature cards */
@media (max-width: 768px) {
  .feature-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .feature-icon {
    width: 40px;
    height: 40px;
  }
  
  .feature-icon i {
    font-size: 1.25rem;
  }
  
  .feature-title {
    font-size: 1rem;
  }
  
  .feature-text {
    font-size: 0.85rem;
  }
}
