/* ========================================
   GLOBAL
======================================== */

html,
body{
    margin:0;
    padding:0;

    width:100%;
    min-height:100%;

    overflow-x:hidden;

    font-family:Arial, sans-serif;

    background:#070b14;
    color:white;
}

*{
    box-sizing:border-box;
}

/* ========================================
   NAVBAR
======================================== */

.navbar{
    width:100%;
    height:80px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0px 50px;

    background:#0f172a;

    border-bottom:1px solid rgba(255,255,255,0.05);

    position:sticky;
    top:0;

    z-index:999;
}

.logo{
    font-size:34px;
    font-weight:bold;

    color:#ff4655;
}

nav{
    display:flex;
    align-items:center;

    gap:22px;
}

nav a{
    color:white;

    text-decoration:none;

    font-size:15px;

    transition:0.2s;
}

nav a:hover{
    color:#ff4655;
}

/* ========================================
   HERO
======================================== */

.hero{
    position:relative;

    width:100%;
    height:560px;

    background-image:url('../assets/banner.png');
    background-size:cover;
    background-position:center;

    display:flex;
    align-items:center;

    overflow:hidden;
}

.hero-overlay{
    position:absolute;
    inset:0;

    background:linear-gradient(
        rgba(0,0,0,0.35),
        rgba(0,0,0,0.6)
    );

    z-index:1;
}

.hero-content{
    position:relative;
    z-index:2;

    width:90%;
    max-width:1400px;

    margin:auto;
    margin-top:180px;
}

.hero-content h1{
    font-size:72px;

    margin:0;
    margin-bottom:10px;

    text-shadow:
    0px 0px 20px rgba(0,0,0,0.6);
}

.hero-content p{
    font-size:22px;

    color:#d1d5db;

    margin-bottom:30px;
}

.hero-buttons{
    display:flex;
    gap:15px;
}

.hero-buttons button{
    padding:15px 28px;

    border:none;
    border-radius:12px;

    background:linear-gradient(
        135deg,
        #ff4655,
        #ff5f6d
    );

    color:white;

    font-size:15px;
    font-weight:bold;

    cursor:pointer;

    transition:0.2s;

    box-shadow:
    0px 10px 25px rgba(255,70,85,0.2);
}

.hero-buttons button:hover{
    transform:translateY(-2px);

    box-shadow:
    0px 15px 35px rgba(255,70,85,0.3);
}

/* ========================================
   TABLE
======================================== */

.table-section{
    width:90%;
    max-width:1400px;

    margin:auto;

    padding-top:40px;
    padding-bottom:40px;
}

.table-section h2{
    margin-bottom:20px;

    font-size:34px;
}

table{
    width:100%;

    border-collapse:collapse;

    background:#0f172a;

    border-radius:16px;

    overflow:hidden;

    border:1px solid rgba(255,255,255,0.04);
}

thead{
    background:#ff4655;
}

th{
    padding:18px;

    text-align:center;

    font-size:15px;
}

td{
    padding:18px;

    text-align:center;

    border-bottom:1px solid rgba(255,255,255,0.04);
}

tbody tr{
    transition:0.2s;
}

tbody tr:hover{
    background:#1b2433;
}

.teamlogo{
    width:42px;
    height:42px;

    border-radius:10px;

    object-fit:cover;
}

/* ========================================
   AUTH
======================================== */

.auth-page{
    width:100%;
    min-height:calc(100vh - 80px);

    display:flex;
    justify-content:center;
    align-items:center;

    padding:40px 20px;
}

.form-container{
    width:420px;

    background:linear-gradient(
        180deg,
        #111827,
        #0f172a
    );

    padding:35px;

    border-radius:18px;

    border:1px solid rgba(255,255,255,0.05);

    box-shadow:
    0px 15px 45px rgba(0,0,0,0.45);
}

.form-container h1{
    text-align:center;

    margin-top:0;
    margin-bottom:25px;
}

.form-container form{
    display:flex;
    flex-direction:column;

    gap:15px;
}

.form-container input{
    width:100%;

    padding:16px;

    border:none;

    border-radius:12px;

    background:#1b2433;

    color:white;

    font-size:15px;

    transition:0.2s;

    border:1px solid transparent;
}

.form-container input:focus{
    outline:none;

    border:1px solid #ff4655;

    box-shadow:
    0px 0px 15px rgba(255,70,85,0.25);
}

.form-container button{
    width:100%;

    padding:15px;

    border:none;

    border-radius:12px;

    background:linear-gradient(
        135deg,
        #ff4655,
        #ff5f6d
    );

    color:white;

    font-size:15px;
    font-weight:bold;

    cursor:pointer;

    transition:0.2s;

    box-shadow:
    0px 10px 25px rgba(255,70,85,0.2);
}

.form-container button:hover{
    transform:translateY(-2px);

    box-shadow:
    0px 15px 35px rgba(255,70,85,0.3);
}

/* ========================================
   PROFILE
======================================== */

.profile-page{
    width:90%;
    max-width:1400px;

    margin:auto;

    padding-top:40px;
    padding-bottom:40px;
}

.profile-grid{
    display:grid;

    grid-template-columns:1fr 1fr;

    gap:25px;

    margin-bottom:25px;
}

.profile-card,
.profile-bottom-card{
    background:linear-gradient(
        180deg,
        #111827,
        #0f172a
    );

    border-radius:18px;

    padding:30px;

    border:1px solid rgba(255,255,255,0.05);

    box-shadow:
    0px 15px 45px rgba(0,0,0,0.45);
}

.profile-header{
    display:flex;
    align-items:center;

    gap:25px;

    margin-bottom:30px;
}

.avatar-wrapper{
    position:relative;
}

.profile-avatar{
    width:130px;
    height:130px;

    border-radius:24px;

    object-fit:cover;

    border:3px solid rgba(255,255,255,0.06);

    box-shadow:
    0px 10px 30px rgba(0,0,0,0.4);
}

.avatar-upload-btn{
    position:absolute;

    bottom:-10px;
    left:50%;

    transform:translateX(-50%);

    background:#ff4655;

    color:white;

    padding:8px 14px;

    border-radius:10px;

    font-size:12px;

    cursor:pointer;

    white-space:nowrap;
}

.profile-mail{
    color:#9ca3af;
}

.profile-card form{
    display:flex;
    flex-direction:column;

    gap:15px;
}

.profile-card label{
    font-size:14px;

    color:#d1d5db;
}

.profile-card input,
.profile-card textarea,
.team-create-form input{
    width:100%;

    padding:16px;

    border:none;

    border-radius:12px;

    background:#1b2433;

    color:white;

    font-size:15px;

    transition:0.2s;

    border:1px solid transparent;
}

.profile-card input:focus,
.profile-card textarea:focus,
.team-create-form input:focus{
    outline:none;

    border:1px solid #ff4655;

    box-shadow:
    0px 0px 15px rgba(255,70,85,0.25);
}

.profile-card textarea{
    resize:none;
}

.profile-card button,
.team-create-form button,
.profile-team-btn{
    width:100%;

    padding:15px;

    border:none;

    border-radius:12px;

    background:linear-gradient(
        135deg,
        #ff4655,
        #ff5f6d
    );

    color:white;

    font-size:15px;
    font-weight:bold;

    cursor:pointer;

    transition:0.2s;

    text-decoration:none;

    display:flex;
    justify-content:center;
    align-items:center;

    box-shadow:
    0px 10px 25px rgba(255,70,85,0.2);
}

.profile-card button:hover,
.team-create-form button:hover,
.profile-team-btn:hover{
    transform:translateY(-2px);

    box-shadow:
    0px 15px 35px rgba(255,70,85,0.3);
}

.team-create-form{
    display:flex;
    flex-direction:column;

    gap:15px;

    margin-top:20px;
}

.success-msg{
    margin-top:18px;

    text-align:center;

    color:#4ade80;
}

.warning-box{
    margin-top:20px;

    padding:18px;

    background:#7c2d12;

    border:1px solid #ea580c;

    border-radius:14px;

    color:#fed7aa;

    text-align:center;
}

.warning-box strong{
    display:block;

    margin-bottom:10px;
}

.team-preview{
    text-align:center;
}

.team-preview-logo{
    width:140px;
    height:140px;

    border-radius:24px;

    object-fit:cover;

    margin-bottom:20px;
}

.profile-bottom-card h2{
    margin-top:0;
}

/* ========================================
   TEAM PAGE
======================================== */

.page-container{
    width:90%;
    max-width:1400px;

    margin:auto;

    padding-top:40px;
    padding-bottom:40px;
}

.team-header{
    display:flex;
    align-items:center;

    gap:30px;

    background:#111827;

    padding:30px;

    border-radius:18px;

    margin-bottom:30px;

    border:1px solid rgba(255,255,255,0.05);
}

.big-team-logo{
    width:120px;
    height:120px;

    border-radius:18px;

    object-fit:cover;
}

.team-info h1{
    margin:0;
    margin-bottom:10px;

    font-size:42px;
}

.team-info p{
    color:#9ca3af;
}

.team-box{
    background:#111827;

    padding:25px;

    border-radius:18px;

    margin-bottom:25px;

    border:1px solid rgba(255,255,255,0.05);
}

.team-actions{
    display:flex;
    gap:15px;

    flex-wrap:wrap;
}

.team-actions button{
    padding:15px 22px;

    border:none;

    border-radius:12px;

    background:linear-gradient(
        135deg,
        #ff4655,
        #ff5f6d
    );

    color:white;

    font-weight:bold;

    cursor:pointer;
}

/* ========================================
   RESPONSIVE
======================================== */

@media(max-width:1000px){

    .profile-grid{
        grid-template-columns:1fr;
    }

    .hero-content h1{
        font-size:46px;
    }

    .navbar{
        flex-direction:column;

        height:auto;

        padding:20px;
    }

    nav{
        margin-top:15px;

        flex-wrap:wrap;
        justify-content:center;
    }

    .profile-header{
        flex-direction:column;

        text-align:center;
    }

}