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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 60px;
    padding: 50px 0;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.header-description {
    font-size: 1.125rem;
    color: #a0a0a0;
    margin-bottom: 30px;
    font-weight: 400;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Server List */
.server-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 80px;
}

.server {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.server:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.server-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.server:hover .server-image {
    transform: scale(1.05);
}

.server-info {
    padding: 30px;
    text-align: center;
}

.server-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    gap: 12px;
}

.server-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.server-title h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.server-info p {
    font-size: 1rem;
    color: #a0a0a0;
    margin-bottom: 24px;
    line-height: 1.5;
}

.server-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.join-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    border: none;
    cursor: pointer;
}

.join-button-primary:hover {
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.info-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Promo Section */
.promo-section {
    margin: 40px 0;
}

.promo-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
    letter-spacing: -0.02em;
}

.promo-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.promo-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 280px;
}

.promo-badge-item:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.promo-badge-item.exclusive {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(30, 20, 30, 0.8);
}

.promo-badge-item.exclusive:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.1);
}

.promo-limit {
    position: absolute;
    top: -8px;
    right: 8px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.promo-emoji {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.promo-text {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

.promo-code-tag {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    color: #ffffff;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    flex-shrink: 0;
    width: 110px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.promo-code-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.promo-code-tag.copied {
    background: rgba(0, 255, 0, 0.2);
    border-color: rgba(0, 255, 0, 0.4);
    color: #00ff00;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    margin-bottom: 80px;
}

/* Gallery Section */
.gallery-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(30, 30, 30, 0.8));
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 18px;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 0;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3), transparent);
    color: #ffffff;
    padding: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gallery-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.gallery-hint {
    font-size: 0.75rem;
    color: #a0a0a0;
    opacity: 0.8;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Discord Widget Section */
.discord-widget-section {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.discord-widget-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
    letter-spacing: -0.02em;
}

.discord-widget-container {
    background: linear-gradient(145deg, rgba(32, 34, 37, 0.95), rgba(47, 49, 54, 0.9));
    border-radius: 20px;
    padding: 25px;
    border: 2px solid rgba(114, 118, 125, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.discord-widget-container:hover {
    border-color: rgba(114, 118, 125, 0.5);
    box-shadow: 0 20px 40px rgba(32, 34, 37, 0.4);
    transform: translateY(-5px);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(32, 34, 37, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(114, 118, 125, 0.2);
    width: 100%;
    justify-content: center;
}

.discord-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(114, 118, 125, 0.1);
    border: 1px solid rgba(114, 118, 125, 0.3);
}

.widget-server-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.widget-iframe-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.discord-widget-container iframe {
    border-radius: 16px;
    max-width: 100%;
    border: 2px solid rgba(114, 118, 125, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.discord-widget-container iframe:hover {
    border-color: rgba(114, 118, 125, 0.5);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    transform: translateZ(0) scale(1.01);
}

.widget-footer {
    margin-top: 15px;
    text-align: center;
    width: 100%;
}

.join-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.join-discord-btn:hover {
    background: linear-gradient(135deg, #4752c4 0%, #5865f2 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5);
}

.join-discord-btn::before {
    content: "💬";
    font-size: 16px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalAppear 0.3s ease;
    text-align: center;
}

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

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #a0a0a0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.modal-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
}

.modal-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

.modal-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    color: #a0a0a0;
    text-align: left;
}

.join-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.join-button:hover {
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

/* Lightbox Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: lightboxAppear 0.3s ease;
}

@keyframes lightboxAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.lightbox-caption {
    text-align: center;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 20px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.header-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .discord-widget-section {
        position: static;
        order: -1;
    }
    
    .discord-widget-container {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    header {
        padding: 30px 0;
        margin-bottom: 40px;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-description {
        font-size: 1rem;
    }
    
    .server-info {
        padding: 20px;
    }
    
    .server-title h2 {
        font-size: 1.25rem;
    }
    
    .server-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .join-button-primary,
    .info-button {
        width: 100%;
        max-width: 280px;
    }
    
    .content-grid {
        gap: 40px;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .gallery-item img {
        height: 120px;
    }
    
    .discord-widget-container {
        padding: 20px;
        max-width: 100%;
    }
    
    .discord-widget-container iframe {
        width: 100%;
        max-width: 320px;
        height: 450px;
    }
    
    .modal-content {
        width: 95%;
        padding: 30px 20px;
        margin: 10% auto;
    }
    
    .gallery-section h2 {
        font-size: 1.75rem;
    }
    
    .discord-widget-section h2 {
        font-size: 1.25rem;
    }
    
    .widget-header {
        padding: 12px 16px;
    }
    
    .widget-title {
        font-size: 1rem;
    }
    
    .discord-logo {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.75rem;
    }
    
    .server-image {
        height: 200px;
    }
    
    .image-gallery {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-item img {
        height: 100px;
    }
    
    .discord-widget-container {
        padding: 15px;
    }
    
    .discord-widget-container iframe {
        width: 100%;
        max-width: 280px;
        height: 400px;
    }
    
    .modal-content {
        padding: 20px 16px;
    }
    
    .join-button,
    .join-button-primary {
        padding: 14px 28px;
        font-size: 0.9rem;
        min-width: 160px;
    }
    
    .widget-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .join-discord-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .discord-logo {
        width: 24px;
        height: 24px;
    }
    
    .widget-title {
        font-size: 1rem;
    }
    
    .promo-badges {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .promo-badge-item {
        min-width: 250px;
        max-width: 300px;
        padding: 10px 14px;
    }
    
    .promo-text {
        font-size: 0.8rem;
    }
    
    .promo-code-tag {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}
