/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #d3d3d3 100%);
    color: #333;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    background: #666;
    border-radius: 50%;
    animation: twinkle 2s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(102, 102, 102, 0.3);
    color: #333;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: bold;
}

.lang-btn:hover, .lang-btn.active {
    background: rgba(102, 102, 102, 0.2);
    border-color: #666;
    transform: scale(1.05);
}

/* Main Container */
.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    text-align: center;
}

/* Logo Animation */
.logo-container {
    margin-bottom: 40px;
}

.logo {
    max-width: 200px;
    height: auto;
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Main Content */
.main-content {
    animation: fadeInUp 1s ease-out;
    max-width: 800px;
}

.coming-soon {
    font-size: 4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    animation: fadeInScale 1.5s ease-out;
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.subtext {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Countdown Timer */
.countdown-container {
    margin: 40px 0;
    animation: fadeInUp 1s ease-out 1s both;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(102, 102, 102, 0.3);
    border-radius: 15px;
    padding: 20px;
    min-width: 80px;
    backdrop-filter: blur(10px);
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.countdown-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

.postponed-badge {
    background: #666;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* User Authentication Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.auth-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.auth-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-input {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.auth-input:focus {
    border-color: #666;
}

.country-select {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    background: white;
    cursor: pointer;
}

.auth-submit {
    padding: 12px 20px;
    background: #666;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.auth-submit:hover {
    background: #555;
}

/* IRC-Style Chat System */
.irc-container {
    background: #ffffff;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Courier New', monospace;
    color: #000000;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    border: 2px solid #000000;
    animation: fadeInUp 1s ease-out 1.5s both;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Channel Tabs */
.channel-tabs {
    display: flex;
    background: #000000;
    border-bottom: 2px solid #000000;
    padding: 0;
    margin: 0;
    border-radius: 8px 8px 0 0;
}

.channel-tab {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #f0f0f0;
    border-right: 1px solid #cccccc;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-width: 120px;
    border-bottom: 3px solid transparent;
}

.channel-tab:hover {
    background: #e0e0e0;
    border-bottom-color: #007bff;
}

.channel-tab.active {
    background: #ffffff;
    border-bottom: 3px solid #007bff;
    font-weight: bold;
}

.channel-name {
    color: #000000;
    font-weight: bold;
    margin-right: 8px;
    font-size: 0.9rem;
}

.user-count {
    background: #000000;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-right: 8px;
    font-weight: bold;
}

.close-channel {
    background: #ff4444;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    transition: all 0.2s ease;
}

.close-channel:hover {
    background: #cc0000;
    transform: scale(1.1);
}

.join-channel-btn {
    background: #007bff;
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 0 8px 0 0;
    font-weight: bold;
    transition: all 0.2s ease;
}

.join-channel-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Main IRC Area */
.irc-main {
    display: flex;
    flex: 1;
    min-height: 350px;
}

.irc-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 2px solid #000000;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid #007bff;
}

.current-channel {
    color: #007bff;
    font-weight: bold;
    font-size: 1.2rem;
}

.channel-topic {
    color: #666666;
    font-style: italic;
    font-size: 0.9rem;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.chat-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background: #ffffff;
    font-size: 0.9rem;
    line-height: 1.5;
    border: 1px solid #e9ecef;
}

.irc-message {
    margin: 3px 0;
    padding: 4px 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.irc-message:hover {
    background: #f8f9fa;
}

.timestamp {
    color: #6c757d;
    font-size: 0.8rem;
    min-width: 55px;
    font-weight: bold;
}

.message-type {
    color: #dc3545;
    font-weight: bold;
    min-width: 25px;
}

.message-content {
    color: #000000;
    word-wrap: break-word;
    flex: 1;
}

.irc-message.own .message-content {
    color: #007bff;
    font-weight: bold;
}

.irc-message.system .message-content {
    color: #fd7e14;
    font-weight: bold;
}

.irc-message.action .message-content {
    color: #6f42c1;
    font-style: italic;
}

.nickname {
    color: #28a745;
    font-weight: bold;
    margin-right: 4px;
}

.country-flag {
    margin-right: 4px;
}

/* User List */
.user-list {
    width: 160px;
    background: #f8f9fa;
    border-left: 2px solid #000000;
    display: flex;
    flex-direction: column;
}

.user-list-header {
    background: #000000;
    color: #ffffff;
    padding: 10px 12px;
    border-bottom: 2px solid #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.user-list-content {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #ffffff;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    margin: 2px 0;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-item:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateX(2px);
}

.user-item.own {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
    font-weight: bold;
}

.user-flag {
    margin-right: 6px;
    font-size: 1rem;
}

/* Input Area */
.chat-input-container {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-top: 2px solid #000000;
    gap: 10px;
}

.nickname-display {
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 90px;
    padding: 8px 12px;
    background: #000000;
    border-radius: 6px;
    text-align: center;
    border: 2px solid #000000;
    transition: all 0.2s ease;
}

.nickname-display:hover {
    background: #333333;
    transform: scale(1.02);
}

.irc-input {
    flex: 1;
    background: #ffffff;
    border: 2px solid #000000;
    color: #000000;
    padding: 10px 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.irc-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    transform: scale(1.01);
}

.irc-send {
    background: #007bff;
    color: white;
    border: 2px solid #007bff;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.irc-send:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: scale(1.05);
}

/* Status Bar */
.irc-status {
    background: #000000;
    color: #ffffff;
    padding: 8px 15px;
    border-top: 2px solid #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-radius: 0 0 8px 8px;
    font-weight: bold;
}

.status-info {
    color: #28a745;
}

.server-info {
    color: #007bff;
    font-weight: bold;
}

/* Modal */
.modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex !important;
}

.modal-content {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border: 3px solid #000000;
    color: #000000;
    min-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    margin: 0 0 20px 0;
    color: #007bff;
    font-size: 1.3rem;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 12px 15px;
    background: #ffffff;
    border: 2px solid #000000;
    color: #000000;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    margin-bottom: 20px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.modal-content input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    outline: none;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-buttons button {
    padding: 10px 20px;
    border: 2px solid;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.modal-buttons button:first-child {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.modal-buttons button:first-child:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: scale(1.05);
}

.modal-buttons button:last-child {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

.modal-buttons button:last-child:hover {
    background: #545b62;
    border-color: #545b62;
    transform: scale(1.05);
}

@keyframes messageSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Progress System - Minimal */
.progress-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 102, 102, 0.2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.progress-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.progress-step {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px 15px;
    border: 1px solid #e9ecef;
}

.progress-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.progress-step-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.progress-step-percentage {
    font-size: 0.8rem;
    font-weight: 600;
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.progress-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
    transition: width 0.8s ease-in-out;
}

.progress-overall {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    padding: 12px;
    color: white;
}

.progress-overall-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.progress-overall .progress-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 6px;
}

.progress-overall .progress-fill {
    background: linear-gradient(90deg, #fff, #f0f0f0);
    height: 100%;
}

/* Browser MU Download Section */
.browser-mu-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

.browser-mu-title {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.4;
}

.download-button {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.download-button:active {
    transform: translateY(-1px);
}

.button-text {
    position: relative;
    z-index: 2;
}

/* Sparkle Animation */
.sparkle {
    position: absolute;
    font-size: 1rem;
    color: #fff;
    pointer-events: none;
    opacity: 0;
    animation: sparkleFloat 3s infinite ease-in-out;
}

.sparkle:nth-child(2) { top: 20%; left: 10%; animation-delay: 0s; }
.sparkle:nth-child(3) { top: 30%; right: 15%; animation-delay: 0.5s; }
.sparkle:nth-child(4) { bottom: 25%; left: 20%; animation-delay: 1s; }
.sparkle:nth-child(5) { bottom: 35%; right: 10%; animation-delay: 1.5s; }
.sparkle:nth-child(6) { top: 50%; left: 5%; animation-delay: 2s; }
.sparkle:nth-child(7) { top: 60%; right: 5%; animation-delay: 2.5s; }
.sparkle:nth-child(8) { bottom: 60%; left: 50%; animation-delay: 0.2s; }
.sparkle:nth-child(9) { top: 80%; right: 30%; animation-delay: 0.8s; }

@keyframes sparkleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) rotate(0deg) scale(0.5);
    }
    10%, 90% {
        opacity: 1;
        transform: translateY(-20px) rotate(180deg) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-40px) rotate(360deg) scale(1.2);
    }
}

/* Pulsing effect for the button */
.download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    border-radius: 50px;
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .progress-container {
        padding: 12px;
        margin: 10px 0;
    }
    
    .progress-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .progress-step {
        padding: 8px 12px;
    }
    
    .progress-step-name {
        font-size: 0.85rem;
    }
    
    .progress-step-percentage {
        font-size: 0.75rem;
        padding: 2px 6px;
    }
}

.chat-send:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.chat-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.online-count {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.typing-indicator {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    min-height: 20px;
}

.message-actions {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.message-action {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 5px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.message-action:hover {
    background: rgba(102, 102, 102, 0.1);
}

.chat-emoji {
    font-size: 1.2rem;
    cursor: pointer;
    margin: 0 2px;
    transition: transform 0.2s ease;
}

.chat-emoji:hover {
    transform: scale(1.2);
}

.emoji-picker {
    position: absolute;
    bottom: 60px;
    right: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    display: none;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease-out 2s both;
}


.copyright {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .coming-soon {
        font-size: 2.5rem;
    }
    
    .subtext {
        font-size: 1rem;
    }
    
    .countdown {
        gap: 10px;
    }
    
    .countdown-item {
        padding: 15px;
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .language-selector {
        top: 10px;
        right: 10px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .coming-soon {
        font-size: 2rem;
    }
    
    .logo {
        max-width: 150px;
    }
    
    .chat-messages {
        height: 200px;
    }
}
