/* ============================================================
   FLANAGAN TALENT DATABASE - Main Stylesheet
   Clean, Sleek, Minimal Design
   ============================================================ */

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #e94560;
    --accent-hover: #c73852;
    --gold: #f5c518;
    --gold-light: #ffd93d;
    --text: #333333;
    --text-light: #777777;
    --bg: #f8f9fa;
    --white: #ffffff;
    --border: #e8e8e8;
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--primary);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
}

.site-logo span { color: var(--accent); }

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.3);
}

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

.btn-gold {
    background: var(--gold);
    color: var(--primary);
}

.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ============================================================
   HERO / CAROUSEL
   ============================================================ */
.hero-carousel {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--primary-light);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
}

.carousel-nav {
    position: absolute;
    bottom: 15px;
    right: 30px;
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.carousel-dot.active { background: var(--accent); width: 24px; border-radius: 5px; }

.carousel-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
}

.carousel-arrow {
    pointer-events: all;
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-arrow:hover { background: var(--accent); }

/* ============================================================
   TOOLBAR / SEARCH BAR
   ============================================================ */
.toolbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.search-wrap {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-wrap input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.95rem;
    background: var(--white);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.search-wrap input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}

.search-wrap .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
}

.toolbar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sort-select {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    background: var(--white);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.filter-toggle {
    position: relative;
}

.profile-count {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================================
   SPOTLIGHT SIDEBAR
   ============================================================ */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px 40px;
    display: flex;
    gap: 30px;
}

.spotlight-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.spotlight-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.spotlight-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 16px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spotlight-body {
    padding: 15px;
}

.spotlight-profile {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.spotlight-profile:last-child { border: none; }

.spotlight-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.spotlight-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff8a80);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.spotlight-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.spotlight-info p {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ============================================================
   PROFILE GRID
   ============================================================ */
.profiles-area { flex: 1; position: relative; }

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.profile-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.profile-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.profile-card.boosted {
    border: 2px solid var(--gold);
}

.profile-card.boosted::before {
    content: 'BOOSTED';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 5;
    letter-spacing: 0.5px;
}

.card-image {
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.profile-card:hover .card-image img { transform: scale(1.05); }

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.7);
    font-weight: 700;
}

.card-image-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.card-image-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.card-image-dot.active { background: var(--white); }

.card-body { padding: 18px; }

.card-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-talent-id {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 4px;
}

.card-statement {
    font-size: 0.825rem;
    color: var(--text-light);
    margin: 8px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
}

.skill-tag {
    background: var(--bg);
    color: var(--text);
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0;
}

.stars { display: flex; gap: 2px; }

.star {
    color: #ddd;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
}

.star.filled { color: var(--gold); }
.star:hover { color: var(--gold-light); }

.rating-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

.card-stats {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    font-size: 0.75rem;
    color: var(--text-light);
}

.card-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.card-actions .btn { flex: 1; justify-content: center; padding: 8px 12px; font-size: 0.78rem; }

.btn-contact { background: var(--primary); color: var(--white); }
.btn-contact:hover { background: var(--primary-light); }

.btn-boost { background: var(--gold); color: var(--primary); }
.btn-boost:hover { background: var(--gold-light); }

.btn-like {
    background: var(--bg);
    color: var(--text);
    flex: 0 !important;
    padding: 8px 14px !important;
}

.btn-like:hover { background: var(--accent); color: var(--white); }
.btn-like.liked { background: var(--accent); color: var(--white); }

/* ============================================================
   FILTER POPUP / SLIDE PANEL
   ============================================================ */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.filter-overlay.active { opacity: 1; visibility: visible; }

.filter-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    z-index: 201;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
}

.filter-panel.active { right: 0; }

.filter-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

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

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

.filter-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.filter-dropdown {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    appearance: auto;
}

.filter-dropdown:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}

.filter-row {
    display: flex;
    gap: 12px;
}

.filter-half {
    flex: 1;
}

.filter-range {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-range input {
    flex: 1;
    padding: 10px 8px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.filter-range input:focus {
    outline: none;
    border-color: var(--accent);
}

.filter-range span { color: var(--text-light); font-size: 0.85rem; }

.filter-footer {
    padding: 18px 25px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

.filter-footer .btn { flex: 1; justify-content: center; }

.btn-reset {
    background: var(--bg);
    color: var(--text);
}

.btn-reset:hover { background: var(--border); }

/* ============================================================
   CONTACT MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 500px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

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

.modal-header h3 { font-size: 1.1rem; font-weight: 700; }

.modal-body { padding: 25px; }

.modal-body .form-group { margin-bottom: 16px; }

.modal-body label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.modal-body input,
.modal-body textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.modal-body input:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.modal-body textarea { height: 120px; resize: vertical; }

.modal-footer {
    padding: 18px 25px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ============================================================
   BOOST MODAL
   ============================================================ */
.boost-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

.boost-plan {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.boost-plan:hover { border-color: var(--gold); }
.boost-plan.selected { border-color: var(--gold); background: #fffdf0; }

.boost-plan .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.boost-plan .duration {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* ============================================================
   NEWSLETTER / FOOTER
   ============================================================ */
.site-footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 30px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.newsletter h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.newsletter p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-family: 'Inter', sans-serif;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }

.footer-info {
    text-align: right;
}

.footer-info .logo {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-info .logo span { color: var(--accent); }

.footer-info p {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    line-height: 1.8;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ============================================================
   LOADING
   ============================================================ */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248,249,250,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-overlay.active { display: flex; }

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 400;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: #27ae60; }
.toast.error { background: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .spotlight-sidebar { display: none; }
    .footer-inner { grid-template-columns: 1fr; gap: 30px; }
    .footer-info { text-align: left; }
}

@media (max-width: 768px) {
    .toolbar { flex-direction: column; align-items: stretch; }
    .search-wrap { max-width: 100%; }
    .toolbar-right { justify-content: space-between; }
    .profiles-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
    .header-inner { flex-direction: column; gap: 12px; }
    .hero-carousel { height: 150px; }
    .boost-plans { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
}

@media (max-width: 480px) {
    .profiles-grid { grid-template-columns: 1fr; }
    .card-actions { flex-wrap: wrap; }
}
