/* --- GLOBAL RESET & THEME --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: #080c14;
    color: #f3f4f6;
    line-height: 1.6;
}

a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

a:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* --- STICKY NAVIGATION --- */
header {
    background-color: #0f172a;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #1e293b;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(to right, #38bdf8, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* --- HERO SPLIT PORTRAIT --- */
.rivalry-hero {
    position: relative;
    height: 450px;
    background-image: url('https://encrypted-tbn2.gstatic.com/licensed-image?q=tbn:ANd9GcQGqwXx9xMvtmFN58wqPQy9sOWrWQlOKm6ZqdoNF5TY4SfhvL5Rnh4mAJAGT1dbmc0hBDPimHZE0t5HTA8');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.rivalry-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), #080c14);
}

.hero-text {
    position: relative;
    z-index: 5;
    padding: 1.5rem;
    max-width: 800px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.8);
}

.hero-text p {
    font-size: 1.3rem;
    color: #cbd5e1;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

/* --- MAIN RESPONSIVE CONTAINERS --- */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.intro-block {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 4rem;
    text-align: center;
}

.intro-block h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

/* Dual Grid for Side-by-Side Profiles */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background-color: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #1e293b;
    display: flex;
    flex-direction: column;
}

.card-img {
    height: 350px;
    background-size: cover;
    background-position: center top;
}

.messi-img { background-image: url('https://encrypted-tbn0.gstatic.com/licensed-image?q=tbn:ANd9GcRkuIpgwX5-xKxoA-Itt6wAV9-8vHshnDZn3fAPjWL0ed7qtF8BqmaSdEbQWlakfkltYcfjwpYCMV_WLp0'); }
.ronaldo-img { background-image: url('https://encrypted-tbn3.gstatic.com/licensed-image?q=tbn:ANd9GcTl6uSPMrG6x8Dh_NE5ADMAOVmE1Kq-VyUB_rl2pbtEzWL1wyuxp7kAbfK05scW3g04PUtETO8UKLZjNE8'); }

.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.tag-blue { background-color: #0369a1; color: #e0f2fe; }
.tag-red { background-color: #991b1b; color: #fee2e2; }

/* --- STATISTICAL COMPARISON TABLE --- */
.comparison-zone {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 2.5rem;
}

.comparison-zone h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.comp-table th, .comp-table td {
    padding: 1rem;
    border-bottom: 1px solid #1e293b;
}

.comp-table th {
    background-color: #1e293b;
    font-size: 1.1rem;
}

.comp-table td:first-child {
    font-weight: 600;
    text-align: left;
    color: #94a3b8;
}

.highlight-blue { color: #38bdf8; font-weight: 700; }
.highlight-pink { color: #f472b6; font-weight: 700; }

/* --- PROFILE PAGE SPECIFIC --- */
.profile-container {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 3rem;
    margin-top: 2rem;
}

.profile-header {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.profile-header img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1e293b;
}

.achievements-list {
    margin-top: 2rem;
}

.achievements-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    list-style-type: square;
    margin-left: 1.5rem;
}

/* --- CHAT AREA --- */
.chat-container {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 16px;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    background-color: #1e293b;
    padding: 1rem;
    border-radius: 8px;
    max-width: 80%;
}

.message.user-side {
    background-color: #0369a1;
    align-self: flex-end;
}

.message-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.chat-input-area {
    display: flex;
    border-top: 1px solid #1e293b;
    padding: 1rem;
    gap: 1rem;
}

.chat-input {
    flex-grow: 1;
    background-color: #080c14;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #f3f4f6;
}

.chat-send-btn {
    background-color: #38bdf8;
    color: #080c14;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

/* --- FOOTER --- */
footer {
    background-color: #0f172a;
    border-top: 1px solid #1e293b;
    text-align: center;
    padding: 2.5rem;
    color: #64748b;
    margin-top: 5rem;
}