/*=============================================
   KABADDI FEDERATION PORTAL - MAIN STYLESHEET
=============================================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f4f4;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/*=============================================
   TOP BAR
=============================================*/
.top-bar {
    background: #01411c;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-left {
    font-weight: 500;
}

.top-right {
    color: #ffd700;
}

/*=============================================
   BRANDING
=============================================*/
.branding {
    background: white;
    padding: 20px 0;
    border-bottom: 3px solid #ffd700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.branding .container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    height: 80px;
    width: auto;
}

.brand-text h1 {
    color: #01411c;
    font-size: 1.8em;
    margin-bottom: 5px;
}

.brand-text p {
    color: #666;
    font-size: 1em;
}

/*=============================================
   NAVBAR
=============================================*/
.navbar {
    background: linear-gradient(135deg, #01411c 0%, #1a3b2e 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 15px;
}

.nav-menu a:hover {
    background: #ffd700;
    color: #01411c;
}

/* Dropdown Styles */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    list-style: none;
    padding: 10px 0;
    z-index: 1000;
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: #333 !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
}

.dropdown-menu a:hover {
    background: #01411c !important;
    color: white !important;
}

/* Submenu (nested dropdown) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    min-width: 220px;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.dropdown-submenu:hover > .submenu {
    display: block;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/*=============================================
   MAIN CONTENT
=============================================*/
.main-content {
    min-height: 500px;
    padding: 40px 0;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #01411c 0%, #1a3b2e 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.page-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.page-description {
    font-size: 1.2em;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.page-content {
    min-height: 400px;
    padding: 20px;
}

/*=============================================
   PLAYERS GRID
=============================================*/
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.player-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(1,65,28,0.2);
}

.player-header {
    background: linear-gradient(135deg, #01411c 0%, #1a3b2e 100%);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-name {
    font-size: 1.2em;
    font-weight: bold;
}

.player-position {
    background: #ffd700;
    color: #01411c;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
}

.player-body {
    padding: 15px;
}

.player-dob {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

.player-stats {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-title {
    color: #495057;
    font-weight: 500;
}

.stat-value {
    font-weight: bold;
    color: #01411c;
}

.player-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.player-id {
    color: #6c757d;
    font-size: 0.85em;
}

.btn-view {
    background: #01411c;
    color: white;
    padding: 6px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background 0.3s;
}

.btn-view:hover {
    background: #1a3b2e;
}

/*=============================================
   STATS BAR
=============================================*/
.stats-bar {
    background: #01411c;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat {
    text-align: center;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
    display: block;
}

.stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffd700;
    display: block;
}

/*=============================================
   BUTTONS
=============================================*/
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #01411c;
    color: white;
}

.btn-primary:hover {
    background: #1a3b2e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1,65,28,0.3);
}

.btn-secondary {
    background: transparent;
    color: #01411c;
    border: 2px solid #01411c;
}

.btn-secondary:hover {
    background: #01411c;
    color: white;
}

.actions-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

/*=============================================
   MESSAGES
=============================================*/
.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/*=============================================
   EMPTY STATE
=============================================*/
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

/*=============================================
   FOOTER
=============================================*/
.site-footer {
    background: linear-gradient(135deg, #01411c 0%, #1a3b2e 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3, .footer-col h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/*=============================================
   QUICK ACTIONS
=============================================*/
.quick-actions {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/*=============================================
   RESPONSIVE DESIGN
=============================================*/
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        position: absolute;
        top: 50px;
        left: 0;
        background: #01411c;
        padding: 20px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .dropdown-menu,
    .dropdown-submenu .submenu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        background: rgba(255,255,255,0.1);
    }
    
    .dropdown-menu a {
        color: white !important;
    }
    
    .branding .container {
        flex-direction: column;
        text-align: center;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .stats-bar {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .players-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-bar {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}