/* Game Date Calendar Styles - Gaming Theme */

/* Game Date Specific Theme Colors */
:root {
    --gamedate-primary: #4a90e2;     /* Gaming blue */
    --gamedate-secondary: #7b68ee;   /* Slate blue */
    --gamedate-accent: #32cd32;      /* Lime green */
    --gamedate-success: #00d2ff;     /* Cyan */
    --gamedate-warning: #ff6b35;     /* Orange */
    --gamedate-danger: #ff3838;      /* Red */
    --gamedate-glass: rgba(74, 144, 226, 0.15);
    --gamedate-glass-border: rgba(74, 144, 226, 0.3);
    --gamedate-text-glow: 0 0 10px rgba(74, 144, 226, 0.5);
}

/* Game Date Specific Header */
body.game-date-theme header {
    background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.2), 
        rgba(123, 104, 238, 0.2));
    border-bottom: 2px solid var(--gamedate-glass-border);
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.1);
}

body.game-date-theme #title {
    color: var(--gamedate-primary);
    text-shadow: var(--gamedate-text-glow);
    font-weight: bold;
}

/* Gaming-inspired glow effects */
.gamedate-glow {
    box-shadow: 
        0 0 10px rgba(74, 144, 226, 0.3),
        0 0 20px rgba(74, 144, 226, 0.2),
        0 0 30px rgba(74, 144, 226, 0.1);
}

.error-message {
    text-align: center;
    background: var(--gamedate-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gamedate-glass-border);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 500px;
    color: var(--background-color);
}

.error-message h2 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

/* Create Session Styles - Gaming Theme */
.create-session {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--gamedate-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gamedate-glass-border);
    border-radius: 12px;
    color: var(--background-color);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.1);
}

.create-session h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.create-session p {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.create-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--background-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gamedate-glass-border);
    border-radius: 8px;
    background: var(--gamedate-glass);
    color: var(--background-color);
    font-size: 1rem;
    backdrop-filter: blur(5px);
    box-sizing: border-box; /* Ensure padding is included in width */
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gamedate-primary);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
    background: rgba(74, 144, 226, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gamedate-primary), var(--gamedate-secondary));
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    /* Remove moving animation - users find it annoying */
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, var(--gamedate-secondary), var(--gamedate-primary));
}

.btn-secondary {
    background: var(--gamedate-glass);
    color: var(--gamedate-primary);
    border: 1px solid var(--gamedate-glass-border);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-weight: 600;
}

.btn-secondary.btn-compact {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-secondary.btn-icon {
    padding: 0.5rem;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Square Plus Button for Create New Planner */
.btn-square-plus {
    background: linear-gradient(135deg, var(--gamedate-primary), var(--gamedate-secondary));
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.btn-square-plus:hover {
    /* Remove moving animation - users find it annoying */
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, var(--gamedate-secondary), var(--gamedate-primary));
}

.btn-secondary.btn-icon i {
    margin: 0;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.2);
}

.btn-warning {
    background: rgba(255, 107, 53, 0.15) !important;
    color: var(--gamedate-warning) !important;
    border-color: rgba(255, 107, 53, 0.3) !important;
}

.btn-warning:hover {
    background: rgba(255, 107, 53, 0.25) !important;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.2) !important;
}

.features-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.features-info h3 {
    margin-bottom: 1rem;
    color: var(--background-color);
    text-align: center;
}

.features-info ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

.features-info li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.features-info li i {
    margin-right: 0.5rem;
    color: var(--background-color);
    width: 16px;
}

/* Session View Styles - Gaming Theme */
.session-header {
    text-align: center;
    margin-bottom: 2rem;
    background: var(--gamedate-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gamedate-glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    color: var(--background-color);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.1);
}

.session-header h1 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
}

.session-header p {
    margin: 0 0 1rem;
    opacity: 0.8;
    font-size: 1.1rem;
}

.session-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.user-section {
    background: var(--gamedate-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gamedate-glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.1);
}

.user-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: end;
}

.user-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--gamedate-glass-border);
    border-radius: 8px;
    background: var(--gamedate-glass);
    color: var(--background-color);
    backdrop-filter: blur(5px);
    box-sizing: border-box; /* Ensure padding is included in width */
    min-width: 0; /* Allow flexbox to shrink input properly */
    transition: all 0.3s ease;
}

.user-input input:focus {
    border-color: var(--gamedate-primary);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

.current-users {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.user-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 2px solid;
    color: #000;
    transition: all 0.3s ease;
}

.user-badge.clickable-user {
    cursor: pointer;
    position: relative;
}

.user-badge.clickable-user:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.user-badge.clickable-user:after {
    content: '👤';
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-badge.clickable-user:hover:after {
    opacity: 1;
}

.user-badge.selected-user {
    box-shadow: 0 0 0 3px var(--gamedate-accent);
    transform: scale(1.1);
}

/* Calendar Styles - Gaming Theme */
.calendar-container {
    background: var(--gamedate-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gamedate-glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.1);
    position: relative;
}

.calendar-wrapper {
    overflow: hidden;
    position: relative;
}

.calendar-grid {
    display: grid;
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    min-width: 800px;
    width: 100%;
}

.calendar-grid.month-view {
    grid-template-columns: auto repeat(7, 1fr);
}

.calendar-grid.week-view {
    grid-template-columns: auto repeat(7, 1fr);
}

.weekday-header {
    background: linear-gradient(135deg, var(--gamedate-primary), var(--gamedate-secondary));
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border-radius: 4px 4px 0 0;
}

.weekday-header.empty-day {
    background: rgba(128, 128, 128, 0.3);
    color: rgba(255, 255, 255, 0.5);
}

.corner-cell {
    background: transparent !important;
}

.time-header {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.25rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--background-color);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.day-header {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.25rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--background-color);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.time-slot {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    min-height: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
}

.time-slot:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.time-slot.selected {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.time-slot.overlap {
    background: linear-gradient(45deg, 
        rgba(255, 215, 0, 0.6), 
        rgba(255, 165, 0, 0.6));
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.time-slot.multiple-users {
    background: linear-gradient(45deg, 
        var(--user-color-1, rgba(255, 99, 99, 0.6)), 
        var(--user-color-2, rgba(99, 255, 99, 0.6)));
}

.time-slot.current-day {
    border: 2px solid var(--gamedate-accent);
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.4);
    background: linear-gradient(135deg, 
        rgba(50, 205, 50, 0.1), 
        rgba(50, 205, 50, 0.05));
}

.time-slot.current-day.selected {
    background: linear-gradient(135deg, 
        rgba(50, 205, 50, 0.3), 
        rgba(50, 205, 50, 0.2));
}

.time-slot.empty-slot {
    background: rgba(128, 128, 128, 0.1);
    cursor: not-allowed;
    opacity: 0.3;
}

.time-slot.empty-slot:hover {
    background: rgba(128, 128, 128, 0.1);
    border-color: transparent;
}

/* Summary Sections - Gaming Theme */
.overlap-summary,
.ai-summary {
    background: var(--gamedate-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gamedate-glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: var(--background-color);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.1);
}

.overlap-summary h3,
.ai-summary h3 {
    margin: 0 0 1rem;
    text-align: center;
}

.overlap-item {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.overlap-time {
    font-weight: bold;
}

.overlap-users {
    font-size: 0.9rem;
    opacity: 0.8;
}

#ai-summary-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

.loading {
    text-align: center;
    opacity: 0.7;
    font-style: italic;
}

/* Mobile Calendar Navigation */
.mobile-calendar-nav {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.nav-button {
    background: var(--gamedate-glass);
    color: var(--gamedate-primary);
    border: 1px solid var(--gamedate-glass-border);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-weight: 600;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button:hover:not(:disabled) {
    background: rgba(74, 144, 226, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.2);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-info {
    color: var(--background-color);
    font-weight: bold;
    text-align: center;
    font-size: 0.9rem;
}

.time-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.day-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Mobile view adjustments */
.calendar-grid.mobile-view {
    min-width: 100%;
    width: 100%;
    grid-template-columns: auto repeat(var(--visible-days, 3), 1fr);
}

/* Responsive Design - Enhanced Mobile Styles */
@media (max-width: 768px) {
    .mobile-calendar-nav {
        display: flex;
    }
    
    .calendar-container {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .calendar-wrapper {
        overflow: hidden;
    }
    
    .calendar-grid {
        min-width: 100%;
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }
    
    .calendar-grid.mobile-view {
        grid-template-columns: auto repeat(3, 1fr);
    }
    
    .time-slot {
        min-height: 44px; /* iOS touch target minimum */
        padding: 0.5rem 0.25rem;
        touch-action: manipulation;
    }
    
    .weekday-header {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .time-header {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
        white-space: nowrap;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .day-header {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        font-size: 0.7rem;
        padding: 0.5rem 0.25rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide desktop week navigation on mobile */
    .week-navigation {
        display: none !important;
    }
    .create-session {
        margin: 1rem;
        padding: 1rem;
    }
    
    .create-session h1 {
        font-size: 1.5rem; /* Smaller on mobile */
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .session-controls {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .session-controls .btn-secondary.btn-compact {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .session-controls .btn-secondary.btn-icon {
        min-width: 36px;
        min-height: 36px;
        padding: 0.4rem;
    }
    
    .user-input {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-input .btn-primary {
        width: 100%;
    }
    
    .calendar-container {
        padding: 0.5rem;
        margin: 1rem 0;
    }
    
    .calendar-grid {
        min-width: 600px;
        font-size: 0.8rem;
    }
    
    .day-header {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        font-size: 0.7rem;
        padding: 0.25rem;
    }
    
    .session-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .session-header h1 {
        font-size: 1.5rem;
    }
    
    .overlap-summary,
    .ai-summary {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .features-info {
        padding: 1rem;
    }
    
    .features-info ul {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    
    /* Make buttons more touch-friendly */
    .btn-primary, .btn-secondary {
        min-height: 44px; /* iOS touch target minimum */
        padding: 0.75rem 1rem;
    }
    
    .time-slot {
        min-height: 35px; /* Larger tap targets */
    }
    
    /* Improve readability */
    .user-section {
        padding: 1rem;
    }
    
    .current-users {
        justify-content: center;
    }
    
    .user-badge {
        margin: 0.25rem;
    }
}

/* Drag selection styles */
.time-slot.drag-preview {
    opacity: 0.8;
    transform: scale(1.02);
    z-index: 10;
    position: relative;
}

.time-slot.drag-add {
    border: 2px solid var(--gamedate-accent) !important;
    box-shadow: 0 0 8px rgba(50, 205, 50, 0.6) !important;
}

.time-slot.drag-remove {
    border: 2px solid var(--gamedate-danger) !important;
    box-shadow: 0 0 8px rgba(255, 56, 56, 0.6) !important;
}

/* Animation for availability updates */
@keyframes availability-added {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.availability-animation {
    animation: availability-added 0.3s ease-out;
}

/* Color variables for users */
:root {
    --user-color-1: #ff6b6b;
    --user-color-2: #4ecdc4;
    --user-color-3: #45b7d1;
    --user-color-4: #96ceb4;
    --user-color-5: #feca57;
    --user-color-6: #ff9ff3;
    --user-color-7: #54a0ff;
    --user-color-8: #5f27cd;
}

/* Planner List Styles */
.planner-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: var(--background-color);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.planner-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.planner-list-header h1 {
    margin: 0;
    font-size: 2rem;
}

.planners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.planner-card {
    background: var(--gamedate-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gamedate-glass-border);
    border-radius: 12px;
    padding: 1rem; /* Reduced from 1.5rem to reduce vertical space */
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.1);
}

.planner-card:hover {
    /* Remove moving animation - users find it annoying */
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.2);
    border-color: var(--gamedate-primary);
}

.planner-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem; /* Reduced from 1rem to reduce vertical space */
}

.planner-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--gamedate-primary);
    flex: 1;
    margin-right: 1rem;
}

.planner-date {
    background: rgba(74, 144, 226, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.planner-card-details {
    margin-bottom: 0.75rem; /* Reduced from 1rem to reduce vertical space */
}

.planner-card-details p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.planner-card-details i {
    width: 16px;
    text-align: center;
    color: var(--gamedate-accent);
}

.planner-card-actions {
    text-align: right;
}

.btn-small {
    padding: 0.4rem 1rem 0.3rem 1rem; /* Reduced bottom padding */
    font-size: 0.9rem;
}

.no-planners {
    text-align: center;
    background: var(--gamedate-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gamedate-glass-border);
    border-radius: 12px;
    padding: 3rem 2rem;
    color: var(--background-color);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.no-planners p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.8;
}

/* Breadcrumb styles */
.planner-breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb-link {
    color: var(--gamedate-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--gamedate-accent);
}

/* Form actions styles */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Consolidated Game Info Widget - Replaces user-section, overlap-summary, and stats-summary */
.game-info-widget {
    background: var(--gamedate-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gamedate-glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: var(--background-color);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.1);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.game-info-widget.user-joined {
    grid-template-columns: 2fr 1fr;
}

.game-info-main-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* User Section within consolidated widget */
.widget-user-section {
    padding: 0;
    background: none;
    border: none;
    margin: 0;
}

.widget-user-section h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--gamedate-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-user-section h3 i {
    color: var(--gamedate-accent);
}

/* Best Times Section within consolidated widget */
.widget-overlap-summary {
    padding: 0;
    background: none;
    border: none;
    margin: 0;
}

.widget-overlap-summary h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--gamedate-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-overlap-summary h3 i {
    color: var(--gamedate-warning);
}

/* Compact overlap items for consolidated widget */
.compact-overlap-item {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.compact-overlap-time {
    font-weight: bold;
    font-size: 0.85rem;
}

.compact-overlap-users {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Summary Statistics within consolidated widget */
.widget-stats-summary {
    padding: 0;
    background: none;
    border: none;
    margin: 0;
}

.widget-stats-summary h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--gamedate-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-stats-summary h3 i {
    color: var(--gamedate-accent);
}

.compact-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.compact-stat-item {
    text-align: center;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 6px;
    padding: 0.75rem 0.5rem;
}

.compact-stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gamedate-accent);
    margin-bottom: 0.25rem;
}

.compact-stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.compact-stats-details {
    font-size: 0.85rem;
}

.compact-stats-details p {
    margin: 0.25rem 0;
}

/* Gaming-themed backgrounds */
.game-date-theme {
    --gaming-bg-primary: url('/static/images/space-background.jpg');
    --gaming-bg-secondary: url('/static/images/minimal-space.jpg');
    --gaming-bg-tertiary: url('/static/images/galaxy.jpg');
    --gaming-bg-texture: url('/static/images/textures/cartographer.png');
    --gaming-bg-fallback: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.game-date-theme .fixed-background {
    background-image: var(--gaming-bg-primary), var(--gaming-bg-texture), var(--gaming-bg-fallback);
    background-size: cover, 200px 200px, cover;
    background-position: center center, center center, center center;
    background-blend-mode: overlay, soft-light, normal;
    background-attachment: fixed, scroll, fixed;
}

/* Enhanced gaming particle effect overlay */
.game-date-theme .fixed-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(1px 1px at 20px 30px, #00d2ff, transparent),
        radial-gradient(1px 1px at 40px 70px, #4a90e2, transparent),
        radial-gradient(1px 1px at 90px 40px, #7b68ee, transparent),
        radial-gradient(1px 1px at 130px 80px, #32cd32, transparent),
        radial-gradient(1px 1px at 160px 30px, #00d2ff, transparent),
        radial-gradient(2px 2px at 200px 100px, #ff9ff3, transparent),
        radial-gradient(1px 1px at 250px 150px, #54a0ff, transparent);
    background-repeat: repeat;
    background-size: 300px 300px;
    animation: particle-drift 25s linear infinite;
    opacity: 0.4;
    pointer-events: none;
}

@keyframes particle-drift {
    0% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
        opacity: 0.4;
    }
    25% { 
        transform: translateY(-20px) translateX(10px) rotate(90deg); 
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-40px) translateX(-5px) rotate(180deg); 
        opacity: 0.3;
    }
    75% { 
        transform: translateY(-20px) translateX(15px) rotate(270deg); 
        opacity: 0.5;
    }
    100% { 
        transform: translateY(0px) translateX(0px) rotate(360deg); 
        opacity: 0.4;
    }
}

/* Gaming glow effects for interactive elements */
.game-info-widget:hover {
    box-shadow: 
        0 8px 40px rgba(74, 144, 226, 0.15),
        0 0 20px rgba(74, 144, 226, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(74, 144, 226, 0.5);
}

.time-slot:hover {
    box-shadow: 
        0 0 10px rgba(74, 144, 226, 0.3),
        inset 0 0 5px rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.time-slot.selected {
    box-shadow: 
        0 0 15px rgba(50, 205, 50, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
    animation: selection-pulse 2s ease-in-out infinite;
}

@keyframes selection-pulse {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(50, 205, 50, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 0 0 25px rgba(50, 205, 50, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.3);
    }
}

/* Enhanced user badges with gaming aesthetic */
.user-badge.clickable-user {
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.user-badge.clickable-user:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.4),
        0 0 10px var(--gamedate-accent);
}

.user-badge.selected-user {
    box-shadow: 
        0 0 0 3px var(--gamedate-accent),
        0 0 15px var(--gamedate-accent),
        0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

/* Gaming-style button enhancements */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gamedate-primary), var(--gamedate-secondary));
    box-shadow: 
        0 4px 15px rgba(74, 144, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    /* Remove moving animation - users find it annoying */
    box-shadow: 
        0 6px 25px rgba(74, 144, 226, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--gamedate-secondary), var(--gamedate-primary));
}

/* Enhanced session header with gaming feel */
.session-header {
    position: relative;
    overflow: hidden;
}

.session-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(74, 144, 226, 0.1) 50%, transparent 70%);
    animation: header-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes header-shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Stats summary (replaces AI summary) */
.stats-summary {
    background: var(--gamedate-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gamedate-glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: var(--background-color);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.1);
}

.stats-summary h3 {
    margin: 0 0 1rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 8px;
    padding: 1rem 0.5rem;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gamedate-accent);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.stats-details p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.status-good {
    color: var(--gamedate-accent);
    font-weight: bold;
}

.status-pending {
    color: var(--gamedate-warning);
    font-weight: bold;
}

/* Mobile responsiveness for consolidated widget */
@media (max-width: 768px) {
    .game-info-widget {
        padding: 1rem;
        margin: 1rem 0;
        grid-template-columns: 1fr !important; /* Force single column on mobile */
        gap: 1rem;
    }
    
    .game-info-widget.user-joined {
        grid-template-columns: 1fr !important;
    }
    
    .game-info-sidebar {
        order: -1; /* Move sidebar above main content on mobile */
    }
    
    .compact-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .compact-stat-item {
        padding: 0.5rem 0.25rem;
    }
    
    .compact-stat-number {
        font-size: 1rem;
    }
    
    .compact-stat-label {
        font-size: 0.7rem;
    }
    
    .compact-overlap-item {
        padding: 0.4rem;
        font-size: 0.85rem;
    }
    
    .planner-list {
        padding: 1rem;
    }
    
    .planner-list-header {
        flex-direction: column;
        text-align: center;
    }
    
    .planners-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .planner-card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .planner-card-header h3 {
        margin-right: 0;
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* Safari-specific enhancements */
@supports (-webkit-backdrop-filter: blur(10px)) {
    .game-info-widget,
    .create-session,
    .session-header,
    .overlap-summary,
    .stats-summary,
    .calendar-container {
        -webkit-backdrop-filter: blur(10px);
    }
}

/* iOS Safari specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    .game-date-theme {
        /* Prevent zoom on form inputs in iOS Safari */
        -webkit-text-size-adjust: 100%;
    }
    
    .form-group input,
    .form-group select,
    .user-input input {
        font-size: 16px; /* Prevent zoom on focus in iOS Safari */
        -webkit-appearance: none;
        border-radius: 8px;
    }
    
    .btn-primary,
    .btn-secondary {
        -webkit-appearance: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Enhanced touch targets for iOS */
    .time-slot {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        /* Improve touch responsiveness */
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .user-badge.clickable-user {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
    
    /* Smooth scrolling for iOS */
    .calendar-container {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    /* Fix for iOS Safari viewport height issues */
    .fixed-background {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    /* iOS specific input styling */
    .form-group input:focus,
    .form-group select:focus,
    .user-input input:focus {
        /* Remove iOS default focus styles */
        outline: none;
        -webkit-appearance: none;
        /* Add custom focus styling */
        border-color: var(--gamedate-primary);
        box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
        background: rgba(74, 144, 226, 0.1);
    }
    
    /* Improve button press feedback on iOS */
    .btn-primary:active,
    .btn-secondary:active,
    .time-slot:active,
    .user-badge:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Status bar safe area support for iPhone X+ */
    @supports (padding-top: env(safe-area-inset-top)) {
        .fixed-background {
            padding-top: env(safe-area-inset-top);
            padding-bottom: env(safe-area-inset-bottom);
        }
        
        header {
            padding-top: calc(env(safe-area-inset-top) + 1rem);
        }
    }
    
    /* Improve landscape mode on mobile */
    @media (orientation: landscape) and (max-height: 500px) {
        .game-info-widget {
            padding: 0.75rem;
            margin: 0.5rem 0;
        }
        
        .compact-stats-grid {
            grid-template-columns: repeat(4, 1fr);
            gap: 0.5rem;
        }
        
        .session-header {
            padding: 1rem;
        }
        
        .session-header h1 {
            font-size: 1.25rem;
        }
    }
}

/* Enhanced gaming visual effects for larger screens */
@media (min-width: 1024px) {
    .game-info-widget {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }
    
    .game-info-widget:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 40px rgba(74, 144, 226, 0.15);
        transition: all 0.3s ease;
    }
    
    .compact-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .game-date-theme .fixed-background {
        background-image: var(--gaming-bg-primary), var(--gaming-bg-fallback);
        background-size: cover, cover;
        background-position: center center, center center;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support for users with dark mode preference */
@media (prefers-color-scheme: dark) {
    .game-date-theme {
        --gamedate-glass: rgba(74, 144, 226, 0.2);
        --gamedate-glass-border: rgba(74, 144, 226, 0.4);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .game-date-theme .fixed-background::before {
        animation: none;
    }
    
    .game-info-widget:hover {
        transform: none;
    }
    
    .availability-animation {
        animation: none;
    }
}

/* Mobile responsiveness for planner list */
@media (max-width: 768px) {
    .planner-list {
        padding: 1rem;
    }
    
    .planner-list-header {
        flex-direction: column;
        text-align: center;
    }
    
    .planners-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .planner-card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .planner-card-header h3 {
        margin-right: 0;
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
}