/* Profile Page Styles */

/* Preview Mode Banner */
.preview-mode-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 70px; /* Position below the header */
    z-index: 999;
    margin: 0 -2rem 0 -2rem; /* Extend to edges */
}

/* Add spacing after the banner */
.preview-mode-banner + * {
    margin-top: 3rem !important;
}

@media (max-width: 768px) {
    .preview-mode-banner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
        top: 60px; /* Adjust for mobile header height */
        margin: 0 -1rem 0 -1rem;
    }
    
    .preview-mode-banner + * {
        margin-top: 2rem !important;
    }
}

.profile-page {
    padding: 6rem 0 4rem;
    background-color: var(--light-bg);
    min-height: calc(100vh - 70px);
}

.profile-header {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.profile-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Recruit Rating */
.recruit-rating-container {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: white;
}

.recruit-rating-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.rating-badge {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.rating-score {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    font-weight: 600;
}

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

.rating-description {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.rating-tier {
    display: inline-block;
}

.tier-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-badge.unrated {
    background: rgba(255, 255, 255, 0.2);
}

.tier-badge.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
}

.tier-badge.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
}

.tier-badge.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1e40af;
}

.tier-badge.platinum {
    background: linear-gradient(135deg, #e5e4e2 0%, #b9b9b9 100%);
    color: #1e40af;
}

.tier-badge.superstar,
.tier-badge.elite {
    background: linear-gradient(135deg, #8b00ff 0%, #ff00ff 100%);
}

.rating-breakdown {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.875rem 1rem;
    border-radius: calc(var(--border-radius) - 2px);
    backdrop-filter: blur(5px);
}

.breakdown-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.breakdown-label i {
    font-size: 1.125rem;
    opacity: 1;
}

/* Colorful icons for breakdown items */
.breakdown-item:nth-child(1) .breakdown-label i {
    color: #60a5fa; /* Light blue for Profile Completeness */
}

.breakdown-item:nth-child(2) .breakdown-label i {
    color: #34d399; /* Green for Sports & Positions */
}

.breakdown-item:nth-child(3) .breakdown-label i {
    color: #fbbf24; /* Yellow for Athletic Metrics */
}

.breakdown-item:nth-child(4) .breakdown-label i {
    color: #f472b6; /* Pink for Academics */
}

.breakdown-item:nth-child(5) .breakdown-label i {
    color: #a78bfa; /* Purple for School Preferences */
}

.breakdown-item:nth-child(6) .breakdown-label i {
    color: #fb923c; /* Orange for Media & Highlights */
}

.breakdown-score {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-rating-info {
    margin-top: 1rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-rating-info:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-rating-info i {
    font-size: 1rem;
}

/* Profile Progress Bar */
.profile-progress-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--border-color);
}

.profile-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-info i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.progress-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.progress-percentage {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.progress-bar-wrapper {
    width: 100%;
    height: 12px;
    background-color: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 999px;
    transition: width 0.6s ease;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.progress-message {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    text-align: center;
}

/* View Mode Toggle */
.view-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.view-mode-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.view-mode-label i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.view-mode-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-view-mode {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--light-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-view-mode:hover {
    background: #e0e7ff;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-view-mode.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-view-mode.active:hover {
    background: #1e40af;
    border-color: #1e40af;
}

.btn-view-mode i {
    font-size: 1rem;
}

.btn-view-mode .stat-icon {
    margin: 0;
}

@media (max-width: 640px) {
    .view-mode-toggle {
        flex-direction: column;
        gap: 1rem;
    }
    
    .view-mode-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-view-mode {
        width: 100%;
        justify-content: center;
    }
    
    /* Ensure colored icons display on mobile - override any conflicting styles */
    .btn-view-mode .stat-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .btn-view-mode .stat-icon i {
        display: inline-block !important;
    }
}

/* School Selection */
.selected-schools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    min-height: 50px;
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
}

.selected-schools-list:empty::before {
    content: "No schools selected yet";
    color: var(--text-light);
    font-style: italic;
}

.school-tag {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

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

.school-tag-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.school-tag-details {
    font-size: 0.75rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.school-tag-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.school-tag-links a {
    color: white;
    font-size: 1rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-tag-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.school-tag-remove {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    flex-shrink: 0;
}

.school-tag-remove:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s;
}

.modal-content.rating-info-modal {
    max-width: 800px;
    max-height: 90vh;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--light-bg);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-header h2 i {
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--light-bg);
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 2px solid var(--light-bg);
}

/* School Search */
.school-search {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

/* Match Counter */
.match-counter {
    padding: 0.75rem 1rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

/* Profile Schools Section */
.profile-schools-section {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

.schools-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.schools-section-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-search-filters {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

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

.filter-group-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group-compact label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-list-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox-list-compact .checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.checkbox-list-compact .checkbox-item input {
    cursor: pointer;
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

.filter-input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
}

.profile-schools-results {
    margin-top: 1rem;
}

.results-header {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.scroll-hint {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scroll-hint i {
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    /* Limit to 4 rows on mobile (4 schools) - each card ~350px */
    max-height: calc((350px * 4) + (1rem * 3));
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    /* Scroll indicator styling */
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    background: linear-gradient(white 30%, rgba(255,255,255,0)),
                linear-gradient(rgba(255,255,255,0), white 70%) 0 100%,
                radial-gradient(farthest-side at 50% 0, rgba(0,0,0,.2), rgba(0,0,0,0)),
                radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,.2), rgba(0,0,0,0)) 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
    background-attachment: local, local, scroll, scroll;
}

.my-schools-section {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.my-schools-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selected-schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    /* Limit to 4 rows on mobile (4 schools) - each card ~350px */
    max-height: calc((350px * 4) + (1rem * 3));
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    /* Scroll indicator styling */
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    background: linear-gradient(white 30%, rgba(255,255,255,0)),
                linear-gradient(rgba(255,255,255,0), white 70%) 0 100%,
                radial-gradient(farthest-side at 50% 0, rgba(0,0,0,.2), rgba(0,0,0,0)),
                radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,.2), rgba(0,0,0,0)) 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
    background-attachment: local, local, scroll, scroll;
}

.selected-schools-grid:empty::before {
    content: "No schools selected yet. Search and click on schools above to add them to your list.";
    color: var(--text-light);
    font-style: italic;
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
}

/* Style for selected schools cards - match dashboard watchlist style */
.selected-schools-grid .school-card {
    position: relative;
}

.selected-schools-grid .school-card .btn {
    margin-top: 1rem;
    width: 100%;
}

/* Compact remove button for My Schools */
.btn-remove-from-list {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #dc2626;
    background: white;
    border: 1.5px solid #fca5a5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Open Sans', sans-serif;
}

.btn-remove-from-list:hover {
    background: #fef2f2;
    border-color: #dc2626;
    color: #b91c1c;
}

.btn-remove-from-list i {
    font-size: 0.75rem;
}

/* Schools List */
.schools-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding: 0.5rem;
}

/* School cards in modal use same styling as school-search.css */
.schools-list .school-card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.schools-list .school-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.schools-list .school-card.selected {
    background: #eff6ff;
    border-color: var(--primary-color);
    border-width: 2px;
}

/* School cards in profile search grid */
.schools-grid .school-card {
    cursor: pointer;
    transition: var(--transition);
}

.schools-grid .school-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.schools-grid .school-card.selected {
    background: #eff6ff;
    border-color: var(--primary-color);
    border-width: 2px;
}

.schools-list .school-card input[type="checkbox"] {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 10;
}

/* Legacy school-item styles for backwards compatibility */
.school-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.school-item:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
}

.school-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.school-item label {
    flex: 1;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.school-item .school-name {
    font-weight: 600;
    color: var(--text-color);
}

.school-item .school-details {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.school-item.selected {
    background: #eff6ff;
    border-color: var(--primary-color);
}

@media (max-width: 640px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    /* Watchlist Modal Mobile Styles */
    #watchlistModal .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    #watchlistModal .message-item {
        padding: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
    }
    
    /* Stack layout vertically on mobile */
    #watchlistModal .message-item > div {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: flex-start !important;
    }
    
    /* Center avatar */
    #watchlistModal .message-avatar {
        align-self: center;
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
    }
    
    /* Content section - full width */
    #watchlistModal .message-item > div > div:nth-child(2) {
        width: 100%;
        text-align: center;
    }
    
    #watchlistModal .message-item h4 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    #watchlistModal .message-item p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    /* Full-width button on mobile */
    #watchlistModal .btn {
        width: 100% !important;
        padding: 0.875rem 1rem !important;
        font-size: 1rem !important;
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-height: 44px; /* iOS touch target size */
    }
    
    .schools-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
    }
    
    .schools-grid,
    .selected-schools-grid {
        grid-template-columns: 1fr;
    }
    
    .schools-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Desktop/iPad - adjust grid height for multiple columns showing 4 rows */
@media (min-width: 768px) {
    .schools-grid,
    .selected-schools-grid {
        /* Adjust height for 4 rows when showing 2+ columns - each card ~350px */
        max-height: calc((350px * 4) + (1rem * 3));
    }
}

@media (min-width: 1024px) {
    .schools-grid,
    .selected-schools-grid {
        /* Adjust height for 4 rows when showing 3+ columns - each card ~350px */
        max-height: calc((350px * 4) + (1rem * 3));
    }
}

/* Profile Form */
.profile-form {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    max-width: 900px;
    margin: 0 auto;
}

/* View Mode Indicator */
.view-mode-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin: -2rem -2rem 2rem -2rem;
    font-size: 0.9375rem;
}

.view-mode-indicator i {
    font-size: 1.25rem;
}

.view-mode-indicator strong {
    font-weight: 700;
}

/* View-only mode styling */
.profile-form.view-only {
    background: #f9fafb;
}

.profile-form.view-only input,
.profile-form.view-only select,
.profile-form.view-only textarea {
    background-color: #f3f4f6;
    cursor: not-allowed;
    border-color: #d1d5db;
}

.profile-form.view-only .checkbox-label input[type="checkbox"] {
    cursor: not-allowed;
    pointer-events: none;
}

/* Hide ALL action buttons in view-only mode */
.profile-form.view-only .btn-add-video,
.profile-form.view-only .btn-remove-video,
.profile-form.view-only #addSchoolsBtn,
.profile-form.view-only #addArticleBtn,
.profile-form.view-only #addYoutubeBtn,
.profile-form.view-only .remove-school-btn,
.profile-form.view-only .remove-article-btn,
.profile-form.view-only button[id*="add"],
.profile-form.view-only button[id*="Add"],
.profile-form.view-only button[class*="remove"],
.profile-form.view-only button[class*="delete"] {
    display: none !important;
}

/* Prevent interaction with sport checkboxes in view mode */
.profile-form.view-only input[name="sports"] {
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.profile-section {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-section:last-of-type {
    border-bottom: none;
}

.profile-section h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.profile-section h2 i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Colorful section header icons */
.profile-section[data-section="profile_picture"] h2 i {
    color: #3b82f6; /* Blue */
}

.profile-section[data-section="basic_info"] h2 i {
    color: #10b981; /* Green */
}

.profile-section[data-section="recruitment_status"] h2 i {
    color: #f59e0b; /* Amber */
}

.profile-section[data-section="sport_selection"] h2 i {
    color: #ef4444; /* Red */
}

.profile-section[data-section="physical_stats"] h2 i {
    color: #8b5cf6; /* Purple */
}

.profile-section[data-section="academic_info"] h2 i {
    color: #ec4899; /* Pink */
}

.profile-section[data-section="bio_highlights"] h2 i {
    color: #14b8a6; /* Teal */
}

.profile-section[data-section="news_articles"] h2 i {
    color: #f97316; /* Orange */
}

.profile-section[data-section="recruiting_preferences"] h2 i {
    color: #06b6d4; /* Cyan */
}

.profile-section[data-section="profile_visibility"] h2 i {
    color: #6366f1; /* Indigo */
}

/* Section Header with Privacy Toggle */
.section-header-with-privacy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header-with-privacy h2 {
    margin-bottom: 0;
}

/* YouTube thumbnails */
.youtube-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.youtube-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.youtube-thumbnail {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.youtube-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.youtube-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.youtube-thumbnail .edit-video,
.youtube-thumbnail .remove-video {
    position: absolute;
    top: 5px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.youtube-thumbnail .edit-video {
    right: 35px;
    color: #007bff;
}

.youtube-thumbnail .remove-video {
    right: 5px;
    color: #dc3545;
}

.youtube-thumbnail .edit-video:hover,
.youtube-thumbnail .remove-video:hover {
    background: #fff;
}

.youtube-thumbnail .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.youtube-thumbnail .play-overlay i {
    color: white;
    font-size: 24px;
    margin-left: 4px;
}

.youtube-thumbnail .video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 20px 8px 8px 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    pointer-events: none;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Privacy Toggle */
.privacy-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 1rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.privacy-toggle:hover {
    background: #e0e7ff;
}

.privacy-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.privacy-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-label i {
    color: var(--primary-color);
}

.privacy-toggle input:not(:checked) ~ .privacy-label {
    color: var(--text-light);
}

.privacy-toggle input:not(:checked) ~ .privacy-label i {
    color: var(--text-light);
}

.privacy-toggle input:not(:checked) ~ .privacy-label i::before {
    content: "\f070"; /* eye-slash icon */
}

/* Hide privacy toggles in view-only mode */
.profile-form.view-only .privacy-toggle {
    display: none;
}

/* Hidden section styling */
.profile-section.privacy-hidden {
    opacity: 0.5;
    position: relative;
}

.profile-section.privacy-hidden::after {
    content: "Hidden from public view";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    pointer-events: none;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group .required {
    color: #ef4444;
    margin-left: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.help-text {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Profile Picture Upload */
.profile-picture-upload {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.picture-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--border-color);
    flex-shrink: 0;
}

.picture-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.picture-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.picture-placeholder i {
    font-size: 4rem;
}

.upload-controls {
    flex: 1;
    min-width: 250px;
}

.upload-controls input[type="file"] {
    display: none;
}

.upload-controls label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.checkbox-label:hover {
    background-color: var(--light-bg);
}

.checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    color: var(--text-color);
    font-size: 0.9375rem;
}

/* Sports checkboxes specific styling */
#sportsCheckboxes {
    grid-column: 1 / -1;
}

#sportsCheckboxes .help-text {
    grid-column: 1 / -1;
}

/* Sport-specific sections */
.sport-section {
    background-color: #f8fafc;
    border-left: 4px solid var(--primary-color);
}

.sport-section h2 {
    color: var(--primary-color);
}

#sportSpecificSections {
    display: contents;
}

/* Positions summary */
.positions-summary {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.positions-summary strong {
    color: var(--text-color);
    font-weight: 600;
}

.positions-summary span {
    color: var(--primary-color);
    font-weight: 500;
}

/* Metrics container */
.metrics-container {
    padding: 1.5rem;
    background-color: #fefce8;
    border: 2px solid #fde047;
    border-radius: var(--border-radius);
}

.metrics-container h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metrics-container h3 i {
    color: #eab308;
}

.metrics-container .metric-input {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

.metrics-container .metric-input:focus {
    outline: none;
    border-color: #eab308;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1);
}

/* Video inputs */
.videos-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.video-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.video-url-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.video-url-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-remove-video {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-remove-video:hover {
    background-color: #dc2626;
}

.btn-remove-video i {
    font-size: 1rem;
}

.btn-add-video {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Alert Boxes */
.alert {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.alert i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-info {
    background-color: #dbeafe;
    border: 1px solid #3b82f6;
    color: #1e40af;
}

.alert-info i {
    color: #3b82f6;
}

.alert-warning {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}

.alert-warning i {
    color: #f59e0b;
}

.alert strong {
    display: block;
    margin-bottom: 0.25rem;
}

.alert p {
    margin: 0;
    font-size: 0.875rem;
}

/* Verification Notice */
.verification-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.verification-notice i {
    color: #f59e0b;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.verification-notice p {
    margin: 0;
    color: #92400e;
    font-size: 0.875rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 2rem;
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.form-actions .btn {
    min-width: 120px;
}

/* Responsive */
@media (min-width: 768px) and (max-width: 1023px) {
    /* iPad-specific styles */
    .recruit-rating-container {
        padding: 1.75rem;
    }
    
    .recruit-rating-header {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }
    
    .rating-badge {
        min-width: 160px;
        padding: 1.75rem;
    }
    
    .rating-score {
        font-size: 3.5rem;
    }
    
    .rating-details {
        flex: 1;
    }
    
    .rating-breakdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
    
    .breakdown-item {
        padding: 0.875rem 1rem;
    }
    
    .profile-progress-container {
        padding: 1.25rem 1.75rem;
    }
    
    .progress-percentage {
        font-size: 1.75rem;
    }
    
    .progress-bar-wrapper {
        height: 14px;
    }
}

@media (min-width: 1024px) {
    .recruit-rating-container {
        padding: 2rem;
    }
    
    .recruit-rating-header {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
    
    .rating-badge {
        min-width: 180px;
        padding: 2rem;
    }
    
    .rating-score {
        font-size: 4rem;
    }
    
    .rating-details {
        flex: 1;
    }
    
    .rating-breakdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .breakdown-item {
        padding: 1rem 1.25rem;
    }
    
    .profile-progress-container {
        padding: 1.5rem 2rem;
    }
    
    .progress-percentage {
        font-size: 2rem;
    }
    
    .progress-bar-wrapper {
        height: 16px;
    }
    
    .progress-message {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .rating-breakdown {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .profile-page {
        padding: 4rem 0 2rem;
    }

    .profile-header h1 {
        font-size: 2rem;
    }

    .profile-section {
        padding: 1.5rem;
    }

    .profile-picture-upload {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-actions {
        flex-direction: column;
        padding: 1.5rem;
    }

    .form-actions .btn {
        width: 100%;
    }
    
    /* Ensure profile completion icon displays in color on mobile */
    .progress-info i {
        color: var(--primary-color) !important;
        display: inline-block !important;
    }
    
    /* Ensure view mode label icon displays in color on mobile */
    .view-mode-label i {
        color: var(--primary-color) !important;
        display: inline-block !important;
    }
}

/* Verification Status */
.verification-status {
    padding: 1.5rem 2rem;
}

.verification-status .alert {
    margin-bottom: 0;
}

/* Rating Info Modal Styles */
.rating-info-intro {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.rating-info-intro p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.rating-info-section {
    margin-bottom: 2rem;
}

.rating-info-section h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.rating-info-section h3 i {
    color: var(--primary-color);
}

.tier-explanation {
    display: grid;
    gap: 0.75rem;
}

.tier-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem;
    background: var(--light-bg);
    border-radius: calc(var(--border-radius) - 2px);
}

.tier-range {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.875rem;
}

.tier-item p {
    grid-column: 2 / 4;
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-color);
}

.scoring-breakdown {
    display: grid;
    gap: 1rem;
}

.recommendations-list {
    display: grid;
    gap: 1rem;
}

.recommendation-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.recommendation-item.priority-high {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.recommendation-item.priority-medium {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.recommendation-item.priority-low {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.recommendation-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.recommendation-item.priority-high .recommendation-icon {
    color: #ef4444;
}

.recommendation-item.priority-medium .recommendation-icon {
    color: #f59e0b;
}

.recommendation-item.priority-low .recommendation-icon {
    color: #10b981;
}

.recommendation-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.recommendation-content p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.elite-requirements {
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1rem;
}

.elite-requirements p {
    margin: 0 0 0.75rem 0;
    color: var(--text-color);
}

.elite-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.elite-requirements li {
    padding: 0.5rem 0;
    color: var(--text-color);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.elite-requirements li i {
    color: #10b981;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.scoring-item {
    background: var(--light-bg);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.scoring-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.scoring-header i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.scoring-header strong {
    flex: 1;
    color: var(--text-color);
}

.points-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scoring-item ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.scoring-item ul li {
    padding: 0.375rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
    font-size: 0.875rem;
}

.scoring-item ul li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.why-matters {
    display: grid;
    gap: 1rem;
}

.matter-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.matter-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.matter-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.matter-item p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.rating-info-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.25rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.rating-info-cta p {
    margin: 0;
    font-size: 1rem;
}

/* News Articles Section */
.news-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    min-height: 50px;
}

.news-articles-list:empty::before {
    content: "No news articles added yet";
    color: var(--text-light);
    font-style: italic;
    padding: 1rem;
    text-align: center;
    display: block;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
}

.news-article-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
}

.news-article-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.article-content {
    flex: 1;
}

.article-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.article-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.article-link:hover {
    text-decoration: underline;
}

.article-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.article-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon-small {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 1rem;
}

/* Game & Showcase Calendar Section */
.game-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    min-height: 50px;
}

.game-schedule-list:empty::before {
    content: "No games or showcases added yet";
    color: var(--text-light);
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
}

/* Scrollable Calendar Container */
.calendar-scroll-container {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background-color);
    padding: 0.5rem;
    margin-bottom: 1rem;
    scroll-behavior: smooth;
}

.calendar-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.calendar-scroll-container::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 4px;
}

.calendar-scroll-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.calendar-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Calendar Sections */
.calendar-section {
    margin-bottom: 1.5rem;
}

.calendar-section:last-child {
    margin-bottom: 0.5rem;
}

.calendar-section-header {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.calendar-section.past-events .calendar-section-header {
    border-left-color: #9ca3af;
    color: var(--text-light);
}

.calendar-section.upcoming-events .calendar-section-header {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.calendar-section.future-events .calendar-section-header {
    border-left-color: var(--secondary-color);
}

/* Calendar Scroll Hint */
.calendar-scroll-hint {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Past Event Styling */
.game-schedule-item.past-event {
    opacity: 0.7;
    background: var(--background-color);
}

.game-schedule-item.past-event .game-date-badge {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

.game-schedule-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: var(--transition);
}

.game-schedule-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.game-date-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    text-align: center;
    min-width: 80px;
    flex-shrink: 0;
}

.game-date-badge .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.game-date-badge .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.25rem 0;
}

.game-date-badge .year {
    font-size: 0.75rem;
    opacity: 0.9;
}

.game-details {
    flex: 1;
}

.game-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.game-sport-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.game-type-badge {
    background: var(--background-color);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: capitalize;
}

.game-description {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.game-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-info-item i {
    width: 16px;
    color: var(--primary-color);
}

.game-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.add-game-form {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.show-all-games-btn {
    width: 100%;
    margin-top: 1rem;
    background: var(--background-color);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.show-all-games-btn:hover {
    background: var(--primary-color);
    color: white;
}

.btn-icon-small:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.btn-icon-small.delete:hover {
    color: #ef4444;
}

.add-article-form {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

.add-article-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.add-article-form .form-row .form-group {
    flex: 1;
    min-width: 200px;
}

/* School Selector Autocomplete */
.school-selector {
    position: relative;
}

.school-search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.school-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.school-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.school-dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--light-bg);
}

.school-dropdown-item:hover {
    background: var(--light-bg);
}

.school-dropdown-item:last-child {
    border-bottom: none;
}

.school-name {
    font-weight: 500;
    color: var(--text-color);
    display: block;
}

.school-details {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.school-dropdown-empty {
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

.school-dropdown-loading {
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
}

/* Roster Needs List Styles */
.roster-needs-list {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.roster-needs-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 0.8fr 1.2fr 0.8fr 100px;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-color);
}

.roster-need-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 0.8fr 1.2fr 0.8fr 100px;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: var(--transition);
}

.roster-need-row:hover {
    background: #f9fafb;
}

.roster-need-row:last-child {
    border-bottom: none;
}

.roster-need-col {
    font-size: 0.875rem;
    color: var(--text-color);
}

.roster-need-col-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b7280;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-icon:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}

.btn-icon-danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

.priority-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-low {
    background: #e5e7eb;
    color: #6b7280;
}

.priority-medium {
    background: #dbeafe;
    color: #2563eb;
}

.priority-high {
    background: #fee2e2;
    color: #dc2626;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-state p {
    margin: 0.5rem 0;
}

#addRosterNeedBtn {
    margin-top: 1rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.modal-dialog {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.modal-close:hover {
    background: #f3f4f6;
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Multi-select styling */
select[multiple] {
    min-height: 150px;
    padding: 0.5rem;
}

select[multiple] option {
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 2px;
}

select[multiple] option:checked {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
}

select[multiple] option:hover {
    background: #f3f4f6;
}

/* Notification Preferences */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.checkbox-label:hover {
    background: #f9fafb;
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.checkbox-label strong {
    color: var(--text-color);
    font-size: 1rem;
}

.checkbox-label small {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.4;
}

.info-text {
    color: var(--text-light);
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background: #f0f9ff;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.info-text i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .roster-needs-header,
    .roster-need-row {
        grid-template-columns: 1fr 1fr 0.8fr 0.8fr 1fr 0.8fr 80px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .roster-needs-header {
        display: none;
    }
    
    .roster-need-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .roster-need-col::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 0.5rem;
    }
    
    .roster-need-col-actions {
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
}

/* Match Badge Styles for Search Results */
.match-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.match-details {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 0.875rem;
}

.match-details ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
    list-style-type: none;
}

.match-details li {
    margin-bottom: 0.25rem;
    line-height: 1.5;
}
