/* LinkSports - Professional Sports Portfolio Platform */
/* Modern, clean design inspired by Behance */

/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #0066FF;
    --primary-dark: #0052CC;
    --secondary-color: #00D9FF;
    --success-color: #00C48C;
    --warning-color: #FFA826;
    --danger-color: #FF3B3B;
    --dark: #1A1D29;
    --dark-light: #2D3142;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-600: #6C757D;
    --gray-800: #343A40;
    --white: #FFFFFF;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--gray-100);
    color: var(--dark);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar Styling */
.navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--gray-800) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 80px 40px;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
}

.hero-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.hero-button {
    background: var(--white);
    color: var(--primary-color);
    padding: 14px 36px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

/* Card Styling */
.player-card {
    background: var(--white);
    padding: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
}

.player-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.card-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    position: relative;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.player-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 0.5rem 0;
}

.card-subtitle {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-stats {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.connect-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: var(--transition);
    margin-top: auto;
}

.connect-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 1.8;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.voldebug-credit {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.voldebug-credit a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.voldebug-credit a:hover {
    color: var(--white);
}

/* Form Styling */
.form-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: none;
    background: var(--white);
}

.form-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 2rem;
    font-weight: 600;
}

.form-control {
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    outline: none;
}

/* Responsive Design - Mobile Optimizations */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    /* Navbar Mobile */
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .nav-link {
        margin: 0.25rem 0;
        padding: 0.5rem 1rem;
    }

    /* Hero Section Mobile */
    .hero-section {
        padding: 2rem 1rem;
        min-height: auto;
    }
    
    .hero-section h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }

    .hero-button {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Profile Grid Mobile */
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .profiles-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 1rem;
    }

    /* Profile Cards Mobile */
    .profile-card-new {
        margin-bottom: 1rem;
    }

    .profile-image-container {
        height: 200px;
    }

    .profile-content-new {
        padding: 1rem;
    }

    .profile-name {
        font-size: 1.1rem;
    }

    .profile-position {
        font-size: 0.85rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .profile-stats-inline {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .stat-inline {
        font-size: 0.85rem;
    }

    .view-profile-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Section Headers Mobile */
    .section-header {
        padding: 1.5rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 2rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Profile Page Mobile */
    .content-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .profile-hero {
        padding: 1.5rem;
    }

    .profile-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-picture {
        width: 120px;
        height: 120px;
    }

    .profile-name-section h1 {
        font-size: 1.75rem;
    }

    .profile-position-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .profile-stats-hero {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-hero {
        min-width: auto;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Content Cards Mobile */
    .content-card {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .content-card h2 {
        font-size: 1.25rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-box-detail {
        padding: 1rem;
    }

    .stat-box-detail strong {
        font-size: 1.5rem;
    }

    /* Action Buttons Mobile */
    .action-btn {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    /* Contact List Mobile */
    .contact-list li {
        padding: 0.75rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    /* Create Profile Mobile */
    .profile-form-container {
        padding: 1rem;
        margin: 1rem auto;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .profile-card {
        padding: 1.25rem;
    }

    .profile-card h2 {
        font-size: 1.25rem;
    }

    .physical-stats-row {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        width: 100%;
    }

    .action-button {
        width: 100%;
        margin: 0.5rem 0 !important;
        padding: 1rem;
        font-size: 0.95rem;
    }

    /* Form Elements Mobile */
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }

    textarea {
        min-height: 100px;
    }

    /* Image Upload Mobile */
    .image-upload-section {
        padding: 1.5rem;
    }

    .current-image {
        max-width: 150px;
        max-height: 150px;
    }

    /* Manage Events Mobile */
    .events-container {
        padding: 1rem;
    }

    .events-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .event-card {
        padding: 1rem;
    }

    /* Modal Mobile */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 1rem;
        padding: 1.25rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal h2 {
        font-size: 1.25rem;
    }

    /* Login Page Mobile */
    .auth-container {
        padding: 1rem;
        margin: 1rem auto;
    }

    .auth-box {
        padding: 1.5rem;
    }

    .auth-tabs button {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Header Bar Mobile */
    .header-bar {
        padding: 1rem 0;
    }

    .header-content {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .header-links {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .header-links a {
        margin-left: 0;
        font-size: 0.9rem;
    }

    /* Badge Adjustments Mobile */
    .my-profile-badge,
    .profile-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem;
    }

    .incomplete-overlay {
        font-size: 0.85rem;
        padding: 0.75rem;
    }

    /* Achievements Display Mobile */
    .content-card > div[style*="flex-direction: column"] > div {
        padding: 0.875rem !important;
    }

    .content-card strong[style*="font-size: 1.1rem"] {
        font-size: 1rem !important;
    }

    .content-card div[style*="font-size: 0.85rem"] {
        font-size: 0.8rem !important;
    }
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .profiles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .hero-section h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .profile-name {
        font-size: 1rem;
    }

    .action-button,
    .hero-button,
    .view-profile-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .modal-content {
        width: 100%;
        margin: 0.5rem;
        padding: 1rem;
    }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        padding: 1.5rem 1rem;
    }

    .modal-content {
        max-height: 80vh;
    }
}

/* Original Media Query - Keep for compatibility */
@media (max-width: 768px) {
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Profile Page Enhancements */
.profile-header {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.profile-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
}

.profile-card h2,
.profile-card h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
