
body {
background: #121212;
color: #E0E0E0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
margin: 0;
padding: 0;
line-height: 1.6;
}

.header_top {
background: #1E1E1E;
padding: 0.5rem 0;
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header_top_content {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
display: flex;
justify-content: space-between;
align-items: center;
}

.logo {
display: flex;
align-items: center;
text-decoration: none;
padding: 1rem 2rem;
height: 100%;
position: relative;
margin: -0.5rem 0;
}

.logo img {
height: 80px;
width: auto;
display: block;
}

/* Main Navigation */
.main-nav {
margin-left: 2rem;
}

.main-menu {
list-style: none;
margin: 0;
padding: 0;
display: flex;
align-items: center;
}

.main-menu > li {
position: relative;
margin-left: 1rem;
}

.main-menu > li > a {
color: #fff;
text-decoration: none;
padding: 0.5rem 0.75rem;
display: block;
font-size: 1.1rem;
}

.main-menu > li > a:hover {
color: rgba(255,255,255,0.8);
}

/* Dropdown Menu */
.dropdown {
position: relative;
}

.dropdown-content {
display: none;
position: absolute;
top: 100%;
left: 0;
background: #1E1E1E;
min-width: 200px;
box-shadow: 0 2px 5px rgba(0,0,0,0.3);
border-radius: 4px;
overflow: hidden;
border: 1px solid rgba(255,255,255,0.1);
}

.dropdown:hover .dropdown-content {
display: block;
}

.dropdown-content a {
color: #ffffff;
padding: 0.75rem 1rem;
text-decoration: none;
display: block;
font-size: 0.9rem;
}

.dropdown-content a:hover {
background: rgba(255,255,255,0.1);
}

/* Mobile Menu Button */
.mobile-menu-button {
display: none;
background: none;
border: none;
color: #fff;
font-size: 1.5rem;
cursor: pointer;
padding: 0.5rem;
}

#wrapper {
max-width: 1200px;
margin: 80px auto 0;
padding: 20px;
background: #1E1E1E;
box-shadow: 0 2px 12px rgba(40, 40, 100, 0.08);
border-radius: 12px;
}

.module {
background: #1E1E1E;
border: 1px solid #333333;
border-radius: 8px;
margin-bottom: 2rem;
overflow: hidden;
box-shadow: 0 2px 8px rgba(40, 40, 100, 0.08);
}

.module h3 {
background: #282828;
color: #ffffff;
margin: 0;
padding: 1rem;
font-size: 1.2rem;
border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.module-content {
padding: 1.5rem;
}

.content_inside {
padding: 2rem;
background: #1E1E1E;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1, h2, h3, h4, h5, h6 {
color: #FFFFFF;
}

a {
color: #90CAF9;
text-decoration: none;
}

a:hover {
text-decoration: underline;
}

footer {
text-align: center;
padding: 2rem;
margin-top: 2rem;
background: #1E1E1E;
color: #ffffff;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
.main-nav {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
background: #1E1E1E;
padding: 1rem;
}

.main-nav.active {
display: block;
}

.mobile-menu-button {
display: block;
z-index: 1001;
}

.main-menu {
flex-direction: column;
width: 100%;
}

.main-menu > li {
margin: 0;
width: 100%;
}

.main-menu > li > a {
padding: 1rem;
border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-content {
position: static;
box-shadow: none;
background: rgba(255,255,255,0.1);
display: none;
padding-left: 1rem;
}

.dropdown.active .dropdown-content {
display: block;
}

.dropdown-content a {
color: #fff;
padding: 0.75rem 1rem;
border-bottom: 1px solid rgba(255,255,255,0.1);
}

#wrapper {
margin-top: 60px;
padding: 10px;
}

.logo img {
height: 60px;
}

.header_top {
padding: 0.25rem 0;
}

.logo {
padding: 0.5rem 1rem;
margin: 0;
position: relative;
z-index: 1000;
}

.header_top_content {
padding: 0;
position: relative;
justify-content: center;
}

.mobile-menu-button {
position: absolute;
left: 1rem;
top: 50%;
transform: translateY(-50%);
}
}

.main-menu > li > a i {
margin-right: 0.5rem;
font-size: 1.1rem;
color: #DAA520;
}

.main-menu > li > a:hover i {
transform: rotate(15deg);
transition: transform 0.3s ease;
}

.module h3 i {
margin-right: 0.75rem;
font-size: 1.2rem;
vertical-align: middle;
color: #DAA520;
}

.module h3:hover i {
transform: rotate(15deg);
transition: transform 0.3s ease;
}

.dropdown-content {
background: #1E1E1E;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 4px 12px rgba(40, 40, 100, 0.2);
}

.dropdown-content a:hover {
background: rgba(255, 255, 255, 0.08);
}

.main-menu > li > a:hover {
color: rgba(255, 255, 255, 0.9);
background: rgba(255, 255, 255, 0.08);
border-radius: 4px;
}

.welcome-section {
text-align: center;
margin-bottom: 3rem;
}

.welcome-section h1 {
font-size: 2.5rem;
color: #FFFFFF;
margin-bottom: 1rem;
}

.welcome-section p {
font-size: 1.1rem;
max-width: 800px;
margin: 0 auto;
color: #E0E0E0;
}

/* Stats Grid */
.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1.5rem;
margin-bottom: 4rem;
}

.stat-card {
background: #1E1E1E;
padding: 1.5rem;
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
text-align: center;
transition: transform 0.2s;
border: 1px solid #333333;
}

.stat-card:hover {
transform: translateY(-5px);
}

.stat-card i {
font-size: 2.5rem;
color: #DAA520;
margin-bottom: 1rem;
}

.stat-number {
font-size: 2rem;
font-weight: bold;
color: #FFFFFF;
margin-bottom: 0.5rem;
}

.stat-label {
color: #E0E0E0;
font-size: 0.9rem;
}

/* Tournaments Section */
.section-header {
margin-bottom: 2rem;
text-align: center;
}

.section-header h2 {
font-size: 2rem;
color: #FFFFFF;
}

.section-header h2 .section-icon {
color: #DAA520;
margin-right: 1rem;
font-size: 1.8rem;
vertical-align: middle;
}

.tournament-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
}

.tournament-card {
background: #1E1E1E;
border: 1px solid #333333;
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
overflow: hidden;
transition: transform 0.2s;
position: relative;
}

.tournament-card:hover {
transform: translateY(-5px);
}

.tournament-status {
position: absolute;
top: 1rem;
right: 1rem;
padding: 0.25rem 0.75rem;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 400;
letter-spacing: 0.5px;
text-transform: uppercase;
}

.tournament-status.upcoming {
background: #2C2C2C;
color: #FFFFFF;
border: 1px solid #404040;
opacity: 0.9;
}

.tournament-status.active {
background: #10b981;
color: white;
}

.tournament-status.completed {
background: #6b7280;
color: white;
}

.tournament-date {
padding: 1rem;
color: #E0E0E0;
font-size: 0.9rem;
}

.tournament-card h3 {
padding: 0 1rem;
margin: 0 0 1rem 0;
color: #FFFFFF;
font-size: 1.2rem;
}

.tournament-details {
padding: 1rem;
border-top: 1px solid #333333;
}

.detail-item {
display: flex;
align-items: center;
margin-bottom: 0.5rem;
}

.detail-item i {
width: 20px;
margin-right: 0.5rem;
color: #DAA520;
}

.tournament-footer {
padding: 1rem;
border-top: 1px solid #333333;
display: flex;
justify-content: space-between;
align-items: center;
}

.spots-left {
font-size: 0.9rem;
color: #E0E0E0;
}

.register-btn, .view-btn {
padding: 0.5rem 1rem;
border-radius: 5px;
font-size: 0.9rem;
font-weight: 500;
text-decoration: none;
transition: background-color 0.2s;
}

.register-btn {
background: #2C2C2C;
color: #FFFFFF;
border: 1px solid #404040;
font-weight: 500;
}

.register-btn:hover {
background: #404040;
text-decoration: none;
border: 1px solid #505050;
color: #FFFFFF;
}

.view-btn {
background: #424242;
color: #E0E0E0;
}

.view-btn:hover {
background: #616161;
text-decoration: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
.stats-grid {
grid-template-columns: repeat(2, 1fr);
}

.welcome-section h1 {
font-size: 2rem;
}

.stat-card {
padding: 1rem;
}

.stat-number {
font-size: 1.5rem;
}

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

@media (max-width: 480px) {
.stats-grid {
grid-template-columns: 1fr;
}
}

.racket-homepage {
display: block;
margin: 2rem auto; /* Add margin top/bottom and center horizontally */
max-width: 200px; /* Match the image width */
height: auto; /* Maintain aspect ratio */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
.racket-homepage {
max-width: 150px; /* Slightly smaller on mobile */
margin: 1.5rem auto;
}
}

/* Players Grid */
.players-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1.5rem;
margin-bottom: 4rem;
}

.player-card {
background: #1E1E1E;
border: 1px solid #333333;
border-radius: 10px;
overflow: hidden;
transition: transform 0.2s;
display: flex;
padding: 1.5rem;
gap: 1.5rem;
}

.player-card:hover {
transform: translateY(-5px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.player-left-section {
display: flex;
flex-direction: column;
gap: 1rem;
}

.player-image-wrapper {
width: 120px;
height: 120px;
position: relative;
border-radius: 10px;
overflow: hidden;
}

.player-image-wrapper img {
width: 100%;
height: 100%;
object-fit: cover;
}

.player-image-placeholder {
width: 120px;
height: 120px;
display: flex;
align-items: center;
justify-content: center;
background: #000000;
border-radius: 10px;
color: #FFFFFF;
font-size: 2rem;
font-weight: 500;
text-align: center;
}

.player-initials {
text-transform: uppercase;
letter-spacing: 1px;
}

.player-medals {
display: flex;
gap: 0.5rem;
justify-content: center;
}

.medal-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
}

.medal-item i {
font-size: 1.5rem;
}

.medal-item.gold i { color: #FFD700; }
.medal-item.silver i { color: #C0C0C0; }
.medal-item.bronze i { color: #CD7F32; }

.medal-item span {
font-size: 1.3rem;
color: #E0E0E0;
}

.player-info {
flex: 1;
}

.player-name {
color: #FFFFFF;
font-size: 1.25rem;
margin-bottom: 1rem;
font-weight: 500;
}

.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1rem;
}

.stat-item {
background: rgba(0, 0, 0, 0.2);
padding: 0.75rem;
border-radius: 8px;
text-align: center;
}

.stat-header {
font-size: 0.8rem;
color: #E0E0E0;
opacity: 0.8;
margin-bottom: 0.25rem;
text-align: center;
}

.stat-value {
font-size: 1.1rem;
font-weight: 500;
color: #FFFFFF;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
gap: 0.25rem;
}

.win-value, .loss-value {
display: inline-block;
}

.stat-divider {
margin: 0 0.25rem;
opacity: 0.5;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
.players-grid {
grid-template-columns: 1fr;
}

.player-image-wrapper,
.player-image-placeholder {
width: 100px;
height: 100px;
}

.player-image-placeholder {
width: 100px;
height: 100px;
font-size: 1.5rem;
}

.stats-grid {
grid-template-columns: 1fr;
gap: 0.75rem;
}

.medal-item i {
font-size: 1.3rem;
}
}

/* Stats Grid - Homepage */
.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1.5rem;
margin-bottom: 4rem;
}

/* Stats Grid - Player Profiles */
.stats-grid-profile {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
.stats-grid {
grid-template-columns: repeat(2, 1fr);
}

.stats-grid-profile {
grid-template-columns: repeat(2, 1fr);
gap: 0.5rem;
}

.stats-grid-profile .stat-item .stat-value {
font-size: 0.8rem;
}

.stats-grid-profile .stat-item .win-value,
.stats-grid-profile .stat-item .loss-value {
font-size: 0.75rem;
}

.stats-grid-profile .stat-item .stat-header {
font-size: 0.7rem;
}
}

/* Rotating Icon Animation */
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

.rotating-icon {
display: inline-block;
margin-right: 0.5rem;
animation: spin 4s linear infinite;
}

.stats-grid-profile .stat-item .stat-value {
font-size: 0.9rem; /* Reduced from default size */
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
gap: 0.3rem;
}

.stats-grid-profile .stat-item .win-value,
.stats-grid-profile .stat-item .loss-value {
font-size: 0.85rem; /* Even smaller for win/loss values */
}

.stats-grid-profile .stat-item .stat-divider {
font-size: 0.8rem;
opacity: 0.7;
}