/* Public Homepage Styles - Modern Gaming Portal */

/* Hero Section */
.public-hero {
    position: relative;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(20, 30, 48, 0.95) 0%, rgba(36, 59, 85, 0.95) 100%);
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
}

.public-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../imgs/nm/login_bg.jpg') center center;
    background-size: cover;
    opacity: 0.15;
    z-index: 0;
}

.public-hero .hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.public-hero .server-info {
    flex: 1;
}

.public-hero .server-title {
    font-size: 42px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin: 0 0 10px 0;
    font-family: 'Georgia', serif;
    letter-spacing: 2px;
}

.public-hero .server-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin: 0 0 20px 0;
}

.public-hero .server-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.public-hero .stat-box {
    text-align: center;
    padding: 15px 25px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}

.public-hero .stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #4ecdc4;
    display: block;
}

.public-hero .stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Login Panel */
.public-hero .login-panel {
    width: 320px;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.public-hero .login-panel h3 {
    margin: 0 0 20px 0;
    text-align: center;
    color: #333;
    font-size: 18px;
}

.public-hero .login-panel .form-group {
    margin-bottom: 15px;
}

.public-hero .login-panel label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: bold;
}

.public-hero .login-panel input[type="text"],
.public-hero .login-panel input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.public-hero .login-panel input[type="text"]:focus,
.public-hero .login-panel input[type="password"]:focus {
    border-color: #4ecdc4;
    outline: none;
}

.public-hero .login-panel .btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.public-hero .login-panel .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.public-hero .login-panel .login-links {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
}

.public-hero .login-panel .login-links a {
    color: #667eea;
}

.public-hero .login-panel .login-error-msg {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    animation: shake 0.5s ease-in-out;
}

.public-hero .login-panel .remember-me {
    margin: 15px 0;
    font-size: 13px;
    color: #666;
}

.public-hero .login-panel .remember-me label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-hero .login-panel .remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.public-hero .login-panel .captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.public-hero .login-panel .captcha-row img {
    border-radius: 4px;
    height: 36px;
}

.public-hero .login-panel .captcha-row input {
    flex: 1;
}

.public-hero .login-panel .captcha-refresh {
    cursor: pointer;
    opacity: 0.7;
}

.public-hero .login-panel .captcha-refresh:hover {
    opacity: 1;
}

/* Rankings Grid */
.rankings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.ranking-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ranking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.ranking-card .card-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ranking-card .card-header.pvp {
    background: linear-gradient(135deg, #c62828 0%, #e53935 100%);
}

.ranking-card .card-header.level {
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
}

.ranking-card .card-header.enhance {
    background: linear-gradient(135deg, #f57c00 0%, #ff9800 100%);
}

.ranking-card .card-header.pk {
    background: linear-gradient(135deg, #6a1b9a 0%, #8e24aa 100%);
}

.ranking-card .card-header.online {
    background: linear-gradient(135deg, #00838f 0%, #00acc1 100%);
}

.ranking-card .card-header.clan {
    background: linear-gradient(135deg, #4527a0 0%, #5e35b1 100%);
}

.ranking-card .card-header h3 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ranking-card .card-header .view-all {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.ranking-card .card-header .view-all:hover {
    color: #fff;
}

.ranking-card .card-body {
    padding: 0;
}

.ranking-card .rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ranking-card .rank-list li {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.ranking-card .rank-list li:last-child {
    border-bottom: none;
}

.ranking-card .rank-list li:hover {
    background: #f8f9fa;
}

.ranking-card .rank-list .rank-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    margin-right: 12px;
}

.ranking-card .rank-list li:nth-child(1) .rank-num {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #fff;
}

.ranking-card .rank-list li:nth-child(2) .rank-num {
    background: linear-gradient(135deg, #c0c0c0 0%, #9e9e9e 100%);
    color: #fff;
}

.ranking-card .rank-list li:nth-child(3) .rank-num {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
    color: #fff;
}

.ranking-card .rank-list .player-name {
    flex: 1;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-card .rank-list .player-value {
    font-weight: bold;
    color: #667eea;
    font-size: 14px;
}

.ranking-card .rank-list .player-clan {
    font-size: 11px;
    color: #999;
    margin-left: 5px;
}

.ranking-card .rank-list .player-item {
    display: inline;
    font-size: 12px;
    color: #f57c00;
    font-weight: normal;
    margin-left: 8px;
}

.ranking-card .rank-list .player-item::before {
    content: '[';
}

.ranking-card .rank-list .player-item::after {
    content: ']';
}

/* Quick Links */
.quick-links {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.quick-link {
    flex: 1;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.quick-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: #333;
}

.quick-link i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.quick-link.download i { color: #4caf50; }
.quick-link.register i { color: #2196f3; }
.quick-link.discord i { color: #7289da; }
.quick-link.guide i { color: #ff9800; }

.quick-link span {
    font-weight: bold;
    font-size: 14px;
}

/* Footer Credits */
.public-footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 12px;
}

/* Responsive Adjustments */
@media (max-width: 1100px) {
    .rankings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .public-hero .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .public-hero .server-stats {
        justify-content: center;
    }
    
    .public-hero .login-panel {
        margin-top: 30px;
    }
}

/* Override for public page */
section.public-home {
    min-height: auto;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
}

/* Modern Footer Styles */
footer.modern-footer {
    width: 100%;
    padding: 30px 0 40px;
    margin-top: -10px;
    text-align: center;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.3) 30%,
        rgba(0, 0, 0, 0.6) 100%);
    position: relative;
}

footer.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
}

footer.modern-footer .footer-content {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}


