/* Custom CSS for Surfnetwork Website */

/* Import Minecraft-style font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Roboto:wght@300;400;500;700&display=swap');

/* Root Variables */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --accent-color: #FF9800;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --minecraft-green: #00AA00;
    --minecraft-blue: #5555FF;
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}

/* Navigation Styles */
.navbar {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: var(--primary-color) !important;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 3rem;
    color: white;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #e0e0e0;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Server Status */
.server-status {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    animation: fadeInUp 1s ease 0.4s both;
}

.status-indicator,
.player-count {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.status-indicator:hover,
.player-count:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.status-indicator.online i {
    color: var(--minecraft-green);
    animation: pulse 2s infinite;
}

/* IP Section */
.ip-section {
    animation: fadeInUp 1s ease 0.6s both;
}

.ip-reveal-btn {
    background: var(--gradient-bg);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.ip-reveal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ip-reveal-btn:hover::before {
    left: 100%;
}

.ip-reveal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.ip-display {
    margin-top: 20px;
    animation: slideDown 0.5s ease;
}

.ip-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.ip-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

/* Hero Buttons */
.hero-buttons {
    animation: fadeInUp 1s ease 0.8s both;
}

.hero-buttons .btn {
    margin: 10px;
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Features Section */
.features-section {
    background: var(--light-color);
    padding: 100px 0;
}

.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.feature-card:hover::before {
    left: 0;
    opacity: 0.1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotateY(360deg);
}

.feature-card h4 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* Login/Signup Form Styles */
.auth-container {
    min-height: 100vh;
    background: var(--gradient-bg);
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
    animation: slideUp 0.8s ease;
}

.auth-header {
    background: var(--gradient-bg);
    color: white;
    padding: 30px;
    text-align: center;
}

.auth-header h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.auth-body {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
    outline: none;
}

.btn-auth {
    width: 100%;
    background: var(--gradient-bg);
    border: none;
    padding: 15px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    margin-bottom: 20px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* Updates Page */
.updates-section {
    padding: 120px 0 80px;
    background: var(--light-color);
}

.update-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
}

.update-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.update-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.update-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0;
    color: var(--dark-color);
}

.update-content {
    color: #666;
    line-height: 1.8;
}

/* Help Page */
.help-section {
    padding: 120px 0 80px;
    background: var(--light-color);
}

.help-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.help-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.help-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Store Page */
.store-section {
    padding: 120px 0 80px;
    background: var(--light-color);
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.product-header {
    background: var(--gradient-bg);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Press Start 2P', cursive;
}

.product-body {
    padding: 30px 20px;
}

.product-features {
    list-style: none;
    margin-bottom: 30px;
}

.product-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Footer */
.footer {
    background: var(--dark-color) !important;
    padding: 50px 0 30px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: var(--transition);
    margin: 0 5px;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .server-status {
        flex-direction: column;
        gap: 1rem;
    }
    
    .status-indicator,
    .player-count {
        padding: 10px 20px;
    }
    
    .ip-reveal-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 12px 25px;
        margin: 5px;
    }
    
    .auth-card {
        margin: 20px;
    }
    
    .auth-body {
        padding: 30px 25px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .auth-header {
        padding: 25px 20px;
    }
    
    .auth-header h2 {
        font-size: 1.2rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.alert-custom {
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border-left: 4px solid #f44336;
}