/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(to right, #1a1a2e, #16213e);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    background-attachment: fixed;
}

/* Main Container */
.main {
    width: 100%;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #ff7200;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Logo */
.logo h2 {
    color: #ff7200;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

/* Menu Toggle for Mobile */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ff7200;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

/* Menu */
.menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.menu ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    transition: 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
    white-space: nowrap;
}

.menu ul li a:hover,
.menu ul li a.active {
    color: #ff7200;
    background: rgba(255, 114, 0, 0.1);
}

/* Search Bar */
.search {
    position: relative;
    min-width: 300px;
    max-width: 500px;
    flex: 1;
}

.search form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-box {
    position: relative;
    flex: 1;
}

.search input {
    width: 100%;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ff7200;
    border-right: none;
    font-size: 14px;
    padding: 10px 15px 10px 40px;
    border-radius: 25px 0 0 25px;
    color: #fff;
    outline: none;
}

.search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff7200;
    font-size: 16px;
    z-index: 1;
}

.search button {
    width: 80px;
    height: 42px;
    background: #ff7200;
    border: 2px solid #ff7200;
    color: #fff;
    font-size: 14px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
    white-space: nowrap;
}

.search button:hover {
    background: #ff5500;
    transform: scale(1.05);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    border: 1px solid #ff7200;
    border-radius: 10px;
    margin-top: 8px;
    display: none;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 114, 0, 0.2);
    transition: background 0.3s;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.suggestion-item:hover {
    background: rgba(255, 114, 0, 0.2);
}

.suggestion-item i {
    color: #ff7200;
    font-size: 16px;
    min-width: 20px;
}

.suggestion-content {
    flex: 1;
}

.suggestion-content strong {
    display: block;
    font-size: 15px;
}

.suggestion-content small {
    display: block;
    color: #ff7200;
    font-size: 12px;
    margin-top: 2px;
    opacity: 0.8;
}

.view-all-item,
.no-result-item {
    padding: 12px 15px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 114, 0, 0.1);
}

.no-result-item {
    color: #ff6b6b;
}

/* Content Area */
.content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.content h1 {
    font-size: 36px;
    line-height: 1.4;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.content h1 span {
    color: #ff7200;
    font-size: 40px;
    font-weight: 700;
    display: block;
    margin: 10px 0;
}

.par {
    font-size: 18px;
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Cricketer Buttons */
.cricketer-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
    padding: 20px;
}

.cn {
    width: 100%;
    height: 60px;
    background: linear-gradient(45deg, #ff7200, #ff5500);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 114, 0, 0.3);
}

.cn a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    display: block;
    width: 100%;
    height: 100%;
    line-height: 60px;
    border-radius: 12px;
}

.cn:hover {
    background: linear-gradient(45deg, #ff5500, #ff3300);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 114, 0, 0.4);
}

.cn:active {
    transform: scale(0.98);
}

/* Login Form */
.form {
    max-width: 400px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    padding: 30px;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 114, 0, 0.3);
}

.form h2 {
    color: #ff7200;
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
}

.form input {
    width: 100%;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #ff7200;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    margin-top: 20px;
    padding: 0 20px;
    outline: none;
    transition: 0.3s;
}

.form input:focus {
    border-color: #ff5500;
    box-shadow: 0 0 10px rgba(255, 114, 0, 0.5);
}

::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.btnn {
    width: 100%;
    height: 50px;
    background: #ff7200;
    border: none;
    margin-top: 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s;
    font-weight: 600;
}

.btnn:hover {
    background: #ff5500;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 114, 0, 0.4);
}

.btnn:active {
    transform: scale(0.98);
}

.link {
    font-size: 14px;
    text-align: center;
    color: #ddd;
    margin-top: 20px;
    line-height: 1.6;
}

.link a {
    color: #ff7200;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 5px;
}

.link a:hover {
    text-decoration: underline;
}

.liw {
    text-align: center;
    color: #ddd;
    margin-top: 25px;
    font-size: 14px;
}

/* Social Icons */
.icons {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.icons a {
    text-decoration: none;
    color: #fff;
    font-size: 22px;
    transition: all 0.3s;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 114, 0, 0.1);
}

.icons a:hover {
    color: #ff7200;
    background: rgba(255, 114, 0, 0.2);
    transform: translateY(-3px) scale(1.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff7200;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.back-to-top:hover {
    background: #ff5500;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Form Message */
.form-message {
    padding: 12px 15px;
    margin-top: 15px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

.form-message.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

.form-message.success {
    background: rgba(107, 255, 125, 0.1);
    border: 1px solid #6bff7d;
    color: #6bff7d;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Greeting Message */
.greeting {
    background: rgba(255, 114, 0, 0.1);
    border: 1px solid #ff7200;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: fadeIn 0.5s ease;
}

.greeting i {
    color: #ff7200;
    font-size: 18px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search {
        width: 100%;
        max-width: 500px;
    }
    
    .content h1 {
        font-size: 32px;
    }
    
    .content h1 span {
        font-size: 36px;
    }
    
    .cricketer-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .menu {
        display: none;
        width: 100%;
    }
    
    .menu.active {
        display: block;
    }
    
    .menu ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .menu ul li a {
        display: block;
        text-align: center;
        padding: 12px;
        font-size: 16px;
    }
    
    .content h1 {
        font-size: 28px;
    }
    
    .content h1 span {
        font-size: 32px;
    }
    
    .par {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .cricketer-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .cn {
        height: 55px;
    }
    
    .cn a {
        font-size: 15px;
        line-height: 55px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px;
    }
    
    .logo h2 {
        font-size: 24px;
    }
    
    .content {
        padding: 15px;
        margin: 20px auto;
    }
    
    .content h1 {
        font-size: 24px;
    }
    
    .content h1 span {
        font-size: 28px;
    }
    
    .par {
        font-size: 15px;
    }
    
    .form {
        padding: 20px;
        margin: 30px auto;
    }
    
    .form h2 {
        font-size: 24px;
    }
    
    .search input {
        height: 40px;
        font-size: 14px;
    }
    
    .search button {
        height: 40px;
        font-size: 14px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 16px;
    }
}

/* Prevent zoom on input focus in mobile */
@media (max-width: 768px) {
    input, textarea, select {
        font-size: 16px !important;
    }
}

/* Smooth transitions */
* {
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Touch-friendly */
button, .cn, .btnn, .suggestion-item {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

/* Focus styles */
button:focus, 
input:focus, 
.cn:focus, 
.btnn:focus {
    outline: 2px solid #ff7200;
    outline-offset: 2px;
}/* Authentication Buttons */
.auth-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.auth-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 140px;
}

.login-btn {
    background: linear-gradient(45deg, #4a6cf7, #6a11cb);
    color: white;
}

.signup-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.auth-btn:active {
    transform: translateY(-1px);
}

/* Responsive auth buttons */
@media (max-width: 768px) {
    .auth-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .auth-btn {
        width: 100%;
        max-width: 300px;
    }
}/* Disabled button styles */
.disabled-btn {
    background: linear-gradient(45deg, #6c757d, #495057) !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.disabled-btn:hover {
    transform: none !important;
    box-shadow: none !important;
}