/* Servers Page Styles */
.servers-page {
    width: 100%;
    height: 100vh;
    position: relative;
    background-color: var(--dark-bg);
    overflow-x: hidden;
    overflow-y: auto;
}

.servers-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/textures/cooltexturebetter.png') center/cover no-repeat;
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
}

.server-title-splatter {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100vw;
    overflow: hidden;
}

.server-title-splatter img {
    display: block;
    width: clamp(900px, 150vw, 1200px);
    height: auto;
    margin: 0;
    padding: 0;
    mask: 
        linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0.5) 75%, rgba(0,0,0,0.2) 85%, transparent 95%),
        linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,0.8) 70%, rgba(0,0,0,0.5) 80%, rgba(0,0,0,0.2) 90%, transparent 100%);
    -webkit-mask: 
        linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0.5) 75%, rgba(0,0,0,0.2) 85%, transparent 95%),
        linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,0.8) 70%, rgba(0,0,0,0.5) 80%, rgba(0,0,0,0.2) 90%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
    /* Animation properties */
    clip-path: polygon(5% 15%); /* Initial hidden state - single point at edge */
    transition: none; /* Disable default transitions for GSAP control */
    will-change: clip-path, transform, filter;
}

.servers-title {
    position: relative;
    z-index: 10;
    padding: 40px;
    margin-top: 0;
}

.servers-title-text {
    font-size: 6rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
    color: #ffffff;
    text-shadow: 
        0 0 5px rgba(255, 71, 87, 0.8),
        0 0 10px rgba(255, 71, 87, 0.6),
        0 0 15px rgba(255, 71, 87, 0.4),
        0 0 20px rgba(255, 71, 87, 0.2),
        2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.servers-title-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(6px);
    opacity: 0.25;
    color: rgba(255, 255, 255, 0.7);
}

/* Support Ad Styles */
.support-ad {
    position: relative;
    z-index: 15;
    padding: 0 40px;
    margin-bottom: 10px;
}

.support-ad-content {
    font-weight: 600;
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.8),
        0 0 4px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-block;
    position: relative;
}

.support-ad-content::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 9px;
    padding: 1px;
    background: conic-gradient(
        from var(--angle),
        transparent 0deg,
        transparent 45deg,
        rgba(255, 71, 87, 0.9) 90deg,
        rgba(255, 71, 87, 1) 135deg,
        rgba(255, 71, 87, 0.9) 180deg,
        transparent 225deg,
        transparent 270deg,
        transparent 315deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
    animation: shine-border 3s linear infinite;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes shine-border {
    0% {
        --angle: 0deg;
    }
    100% {
        --angle: 360deg;
    }
}

.support-ad-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    display: block;
    white-space: nowrap;
}

.support-link {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 
        0 0 5px rgba(255, 71, 87, 0.8),
        0 0 10px rgba(255, 71, 87, 0.6),
        0 0 15px rgba(255, 71, 87, 0.4),
        0 0 20px rgba(255, 71, 87, 0.2),
        1px 1px 2px rgba(0, 0, 0, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.support-link:hover {
    color: #ff4757;
    text-shadow: 
        0 0 8px rgba(255, 71, 87, 1),
        0 0 15px rgba(255, 71, 87, 0.8),
        0 0 25px rgba(255, 71, 87, 0.6),
        0 0 35px rgba(255, 71, 87, 0.4),
        1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .servers-title-text {
        font-size: 5rem;
    }
}

@media (max-width: 1200px) {
    .servers-title-text {
        font-size: 4.5rem;
    }
}

@media (max-width: 900px) {
    .servers-title-text {
        font-size: 4rem;
    }
}

/* PC-only notice - hidden by default, shown on mobile */
.pc-only-notice {
    display: none;
    text-align: center;
    padding: 20px 40px;
    margin-top: 20px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(128, 128, 128, 0.15);
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.steam-icon-inline {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    margin-right: 0.25em;
    display: inline-block;
    filter: brightness(0) invert(1);
}



/* Total playercount display */
.total-playercount {
    text-align: left;
    margin-top: 20px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 10;
}

.total-playercount-text {
    font-weight: 600;
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.8),
        0 0 4px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-block;
}

.total-playercount-text.loading {
    color: rgba(255, 255, 255, 0.6);
}

.total-playercount-text.online {
    color: rgba(255, 255, 255, 1);
}

.total-playercount-text.offline {
    color: rgba(255, 255, 255, 0.5);
}

.current-count {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 
        0 0 5px rgba(255, 71, 87, 0.8),
        0 0 10px rgba(255, 71, 87, 0.6),
        0 0 15px rgba(255, 71, 87, 0.4),
        0 0 20px rgba(255, 71, 87, 0.2),
        1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Server Browser Styles */
.server-browser {
    position: relative;
    z-index: 10;
    margin-top: 20px;
    padding: 40px 0;
    width: 100%;
}

.server-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
}

.server-item {
    background-color: rgba(30,30,30,0.6);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.server-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: -20%;
    bottom: 0;
    width: 80%;
    background: url('../images/homigrad-render2.png') center center/cover no-repeat;
    mask: linear-gradient(to right, transparent 0%, transparent 10%, rgba(255,255,255,0.1) 15%, rgba(255,255,255,0.2) 20%, rgba(255,255,255,0.3) 25%, rgba(255,255,255,0.4) 30%, rgba(255,255,255,0.5) 35%, rgba(255,255,255,0.6) 40%, rgba(255,255,255,0.7) 45%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.9) 55%, rgba(255,255,255,0.95) 60%, rgba(255,255,255,1) 65%);
    -webkit-mask: linear-gradient(to right, transparent 0%, transparent 10%, rgba(255,255,255,0.1) 15%, rgba(255,255,255,0.2) 20%, rgba(255,255,255,0.3) 25%, rgba(255,255,255,0.4) 30%, rgba(255,255,255,0.5) 35%, rgba(255,255,255,0.6) 40%, rgba(255,255,255,0.7) 45%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.9) 55%, rgba(255,255,255,0.95) 60%, rgba(255,255,255,1) 65%);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

/* Removed hover color bar */

/* Removed server-item hover effect */

/* Removed hover color bar */

.server-content {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    position: relative;
}

.server-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.server-name-display {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.server-players-display {
    font-size: 0.9rem;
    font-weight: 500;
    color: #a8a8a8;
    letter-spacing: 0.5px;
}

.server-gamemode-display {
    font-size: 0.85rem;
    font-weight: 500;
    color: #a8a8a8;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.server-map-display {
    font-size: 0.85rem;
    font-weight: 500;
    color: #a8a8a8;
    letter-spacing: 0.5px;
}

.server-offline-message {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ff6b6b;
    letter-spacing: 0.5px;
    margin-top: 5px;
    font-style: italic;
}

.server-players-display span {
    color: #4CAF50;
    font-weight: 600;
    transition: color 0.3s ease;
}

.server-players-display span.nearly-full {
    color: #ff6b00;
}

.server-players-display span.getting-full {
    color: #4CAF50;
}

.server-gamemode-display span {
    color: #4CAF50;
    font-weight: 600;
}

/* Remove server-actions since join button is now separate */

/* Server wrapper for separate join button */
.server-wrapper {
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.server-wrapper .server-item {
    flex: 1;
}

.server-wrapper .server-join-btn {
    background-color: rgba(46,204,113,0.15);
    color: #f5f5f5;
    border: 2px solid rgba(46,204,113,0.4);
    border-radius: 12px;
    padding: 0 45px;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46,204,113,0.15), inset 0 0 10px rgba(46,204,113,0.1);
    min-width: 180px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
    align-self: stretch;
}

.server-wrapper .server-join-btn:hover {
    color: #2ecc71;
    background-color: rgba(46,204,113,0.2);
    border-color: rgba(46,204,113,0.6);
    box-shadow: 0 6px 20px rgba(46,204,113,0.2), inset 0 0 15px rgba(46,204,113,0.2);
    text-shadow: 0 0 10px rgba(46,204,113,0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.server-wrapper .server-join-btn:disabled,
.server-wrapper .server-join-btn[style*="pointer-events: none"] {
    background: rgba(128, 128, 128, 0.5);
    border-color: rgba(128, 128, 128, 0.3);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    text-shadow: none;
}

/* Server capacity status gradients - using ::before since we removed the hover bar */
.server-item.nearly-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: radial-gradient(ellipse 300px 100% at -50px center, 
        rgba(255, 107, 0, 0.25) 0%,
        rgba(255, 107, 0, 0.15) 40%,
        rgba(255, 107, 0, 0.05) 70%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
    border-radius: 16px;
}

.server-item.getting-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: radial-gradient(ellipse 300px 100% at -50px center, 
        rgba(76,175,80, 0.25) 0%,
        rgba(76,175,80, 0.15) 40%,
        rgba(76,175,80, 0.05) 70%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
    border-radius: 16px;
}

.server-item.offline {
    background-color: rgba(20,20,20,0.7);
    border-color: rgba(255,255,255,0.1);
    opacity: 0.7;
}

.server-item.offline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: radial-gradient(ellipse 300px 100% at -50px center, 
        rgba(255, 107, 107, 0.15) 0%,
        rgba(255, 107, 107, 0.08) 40%,
        rgba(255, 107, 107, 0.02) 70%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
    border-radius: 16px;
}

.server-loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Right-side buttons */
.right-buttons {
    position: absolute;
    right: 40px;
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 15;
}

.right-btn {
    background-color: rgba(30, 30, 30, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-family: 'Oxanium', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 160px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.btn-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.btn-text {
    flex: 1;
    text-align: left;
}

.right-btn:hover {
    background-color: rgba(255, 107, 0, 0.2);
    border-color: rgba(255, 107, 0, 0.6);
    transform: translateX(-5px);
    box-shadow: 
        0 0 15px rgba(255, 107, 0, 0.3),
        0 0 30px rgba(255, 107, 0, 0.1);
}

.right-btn:hover .btn-icon {
    background-color: rgba(255, 107, 0, 0.3);
    border-color: rgba(255, 107, 0, 0.5);
    transform: scale(1.05);
}

.right-btn:hover .btn-icon img {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

.right-btn:active {
    transform: translateX(-3px);
}

/* =================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ================================= */

/* Server Browser Responsive Design */
@media (max-width: 768px) {
    .support-ad {
        display: none;
    }

    .servers-title {
        padding: 20px;
    }

    .servers-title-text {
        font-size: 3rem;
        text-align: center;
    }

    .total-playercount {
        text-align: center;
        margin: 15px 20px;
    }

    .total-playercount-text {
        font-size: 1rem;
        display: block;
        width: 100%;
    }

    .pc-only-notice {
        display: block;
        margin: 20px;
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    .server-browser {
        padding: 20px 0;
    }

    .server-list {
        padding: 0 20px;
    }

    .server-wrapper .server-join-btn {
        display: none !important;
    }

    /* Right buttons responsive */
    .right-buttons {
        position: fixed;
        right: 0;
        top: auto;
        bottom: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        left: 0;
        width: 100%;
        background-color: rgba(18, 18, 18, 0.3);
        border-radius: 0;
        padding: 15px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .right-btn {
        flex: 1;
        min-width: auto;
        padding: 12px 16px;
        font-size: 0.9rem;
        gap: 8px;
        justify-content: center;
    }
    
    .btn-icon {
        display: none;
    }
    
    .btn-text {
        text-align: center;
    }

    .right-btn:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 480px) {
    .servers-title {
        padding: 15px;
    }

    .servers-title-text {
        font-size: 2.5rem;
        text-align: center;
    }

    .total-playercount {
        text-align: center;
        margin: 10px 15px;
    }

    .total-playercount-text {
        font-size: 0.9rem;
        padding: 6px 12px;
        display: block;
        width: 100%;
    }

    .pc-only-notice {
        display: block;
        margin: 15px;
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .server-browser {
        padding: 15px 0;
    }

    .server-list {
        padding: 0 15px;
    }

    .server-item {
        padding: 15px;
    }

    .server-wrapper {
        gap: 12px;
    }

    .server-wrapper .server-join-btn {
        display: none !important;
    }

    /* Right buttons mobile */
    .right-buttons {
        right: 0;
        left: 0;
        bottom: 0;
        gap: 8px;
        width: 100%;
        background-color: rgba(18, 18, 18, 0.3);
        border-radius: 0;
        padding: 15px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .right-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
        min-width: 80px;
        gap: 6px;
        justify-content: center;
    }
    
    .btn-icon {
        display: none;
    }
    
    .btn-text {
        text-align: center;
    }
}

@media (max-width: 375px) {
    .servers-title {
        padding: 10px;
    }

    .servers-title-text {
        text-align: center;
    }

    .total-playercount {
        text-align: center;
        margin: 8px 10px;
    }

    .total-playercount-text {
        font-size: 0.8rem;
        padding: 4px 8px;
        display: block;
        width: 100%;
    }

    .pc-only-notice {
        display: block;
        margin: 10px;
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .server-browser {
        padding: 10px 0;
    }

    .server-list {
        padding: 0 10px;
    }

    .server-item {
        padding: 12px;
    }

    .server-wrapper .server-join-btn {
        display: none !important;
    }

    /* Right buttons extra small */
    .right-buttons {
        right: 0;
        left: 0;
        bottom: 0;
        gap: 6px;
        width: 100%;
        background-color: rgba(18, 18, 18, 0.3);
        border-radius: 0;
        padding: 15px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .right-btn {
        padding: 8px 10px;
        font-size: 0.75rem;
        gap: 4px;
        justify-content: center;
    }
    
    .btn-icon {
        display: none;
    }
    
    .btn-text {
        text-align: center;
    }
} 

/* Hosting Notification Styles */
.hosting-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(30, 30, 30, 0.9);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 71, 87, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 71, 87, 0.2);
    z-index: 1000;
    max-width: 350px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(100px);
}

.hosting-notification.show {
    animation: slideUp 0.5s ease forwards;
}

.hosting-notification:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(255, 71, 87, 0.3);
}

.notification-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
    position: relative;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 12px 12px 0 0;
}

.notification-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon img {
    width: 100%;
    height: 100%;
    filter: brightness(0) saturate(100%) invert(100%);
}

.notification-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.notification-arrow {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.notification-arrow img {
    width: 100%;
    height: 100%;
    filter: brightness(0) saturate(100%) invert(70%);
}

.hosting-notification.expanded .notification-arrow {
    transform: rotate(180deg);
}

.notification-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.hosting-notification.expanded .notification-content {
    max-height: 300px;
}

.notification-body {
    padding: 16px 20px 20px 20px;
    border-top: 1px solid rgba(255, 71, 87, 0.2);
    background-color: rgba(40, 40, 40, 0.4);
    border-radius: 0 0 12px 12px;
}

.affiliate-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.physgun-logo {
    height: 2.5em;
    width: auto;
    vertical-align: middle;
    margin-right: 8px;
    display: inline-block;
}

.affiliate-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin-bottom: 16px;
}

.discount-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 0;
}

.discount-badge {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.discount-text {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 600;
}

.copy-code {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.4);
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.copy-code:hover {
    background: rgba(255, 71, 87, 0.3);
    border-color: rgba(255, 71, 87, 0.6);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.copy-code:active {
    transform: scale(0.95);
}

.copy-code.copied {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.6);
    animation: copySuccess 0.6s ease;
}

@keyframes copySuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.affiliate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.affiliate-btn:hover {
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
    color: white;
}

.affiliate-btn .btn-icon {
    width: 16px;
    height: 16px;
    background: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.affiliate-btn .btn-icon img {
    width: 100%;
    height: 100%;
    filter: brightness(0) saturate(100%) invert(100%);
}

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

/* Responsive Design for Notification */
@media (max-width: 768px) {
    .hosting-notification {
        display: none;
    }
}

@media (max-width: 480px) {
    .hosting-notification {
        display: none;
    }
}

/* Mobile Affiliate Ad Styles */
.mobile-affiliate-ad {
    display: none;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 80px;
    padding: 0 40px;
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    box-sizing: border-box;
}

.mobile-affiliate-card {
    background: linear-gradient(135deg, 
        rgba(30, 30, 30, 0.95) 0%, 
        rgba(40, 40, 40, 0.95) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    transition: all 0.3s ease;
}

.mobile-affiliate-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.mobile-ad-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.mobile-ad-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: none;
    letter-spacing: 0.2px;
    text-align: center;
}

.mobile-ad-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.mobile-ad-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.mobile-ad-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-physgun-logo {
    height: 48px;
    width: auto;
    display: block;
    max-width: 200px;
}

.mobile-ad-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.2;
    font-weight: 500;
}

.mobile-ad-promo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
    flex-wrap: wrap;
}

.mobile-promo-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-discount-text {
    font-size: 0.9rem;
    color: #ff4757;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-ad-cta {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-copy-code {
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ff4757;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: monospace;
    letter-spacing: 0.5px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    outline: none;
    text-transform: uppercase;
}

.mobile-copy-code:hover,
.mobile-copy-code:active {
    background: rgba(255, 71, 87, 0.25);
    border-color: rgba(255, 71, 87, 0.5);
    transform: scale(1.02);
}

.mobile-copy-code.copied {
    background: rgba(76, 175, 80, 0.25);
    border-color: rgba(76, 175, 80, 0.5);
    color: #4caf50;
    animation: mobileCodeCopySuccess 0.4s ease;
}

@keyframes mobileCodeCopySuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.mobile-cta-btn {
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 90%;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(66, 133, 244, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-cta-btn:hover,
.mobile-cta-btn:active {
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
    color: white;
}

.mobile-cta-btn svg {
    transition: transform 0.2s ease;
}

.mobile-cta-btn:hover svg {
    transform: translateX(2px);
}

/* Show mobile ad only on mobile devices */
@media (max-width: 768px) {
    .mobile-affiliate-ad {
        display: block;
        padding: 0 20px;
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 480px) {
    .mobile-affiliate-ad {
        margin-bottom: 100px;
        padding: 0 15px;
    }
    
    .mobile-ad-badge {
        padding: 12px 14px;
    }
    
    .mobile-ad-label {
        font-size: 1rem;
    }
    
    .mobile-ad-content {
        padding: 16px;
        gap: 14px;
    }
    
    .mobile-ad-main {
        gap: 8px;
    }
    
    .mobile-physgun-logo {
        height: 40px;
        max-width: 180px;
    }
    
    .mobile-ad-subtitle {
        font-size: 0.9rem;
    }
    
    .mobile-ad-promo {
        gap: 6px;
    }
    
    .mobile-promo-text {
        font-size: 0.85rem;
    }
    
    .mobile-discount-text {
        font-size: 0.85rem;
    }
    
    .mobile-copy-code {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
    
    .mobile-cta-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 90%;
    }
}

@media (max-width: 375px) {
    .mobile-affiliate-ad {
        margin-bottom: 120px;
        padding: 0 10px;
    }
    
    .mobile-ad-badge {
        padding: 10px 12px;
    }
    
    .mobile-ad-label {
        font-size: 0.95rem;
    }
    
    .mobile-ad-content {
        padding: 14px;
        gap: 12px;
    }
    
    .mobile-ad-main {
        gap: 6px;
    }
    
    .mobile-physgun-logo {
        height: 36px;
        max-width: 160px;
    }
    
    .mobile-ad-subtitle {
        font-size: 0.85rem;
    }
    
    .mobile-ad-promo {
        gap: 4px;
        flex-direction: column;
    }
    
    .mobile-promo-text {
        font-size: 0.8rem;
    }
    
    .mobile-discount-text {
        font-size: 0.8rem;
    }
    
    .mobile-copy-code {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .mobile-cta-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        width: 90%;
    }
}

/* Join Guide Popup Styles */
.join-guide-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.join-guide-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
}

.popup-content {
    position: relative;
    background: rgba(20, 20, 20, 0.7);
    border-radius: 16px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.popup-body {
    padding: 24px;
    max-height: calc(80vh - 160px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for popup body */
.popup-body::-webkit-scrollbar {
    width: 6px;
}

.popup-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    margin: 0;
}

.popup-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.popup-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.join-guide-popup.show .popup-content {
    transform: scale(1) translateY(0);
}

.popup-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px 0 0 0;
}

.popup-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.popup-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
}

.popup-close:hover {
    background: #ff0000;
    transform: scale(1.1);
}

.popup-close img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.section-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.requirements-section {
    margin-bottom: 32px;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.requirement-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.requirement-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.requirement-icon img {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

/* Steam specific styling */
.requirement-item:nth-child(2) .requirement-icon {
    background: #1b2838;
}

.requirement-item:nth-child(2) .requirement-icon img {
    filter: invert(1);
}

/* Garry's Mod specific styling */
.requirement-item:nth-child(3) .requirement-icon {
    background: url('../images/logos/gmod.svg') center/contain no-repeat;
    background-size: 40px 40px;
}

.requirement-item:nth-child(3) .requirement-icon img {
    display: none;
}

.requirement-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.requirement-text strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.requirement-text span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.requirement-text span a {
    color: #66b3ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.requirement-text span a:hover {
    color: #99ccff;
    text-decoration: underline;
}

.steps-section {
    margin-bottom: 32px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.step-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.step-content strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.step-content span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.popup-footer {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 24px;
    border-radius: 0 0 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-note {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.footer-note strong {
    color: #ffffff;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(114, 137, 218, 0.15);
    color: #f5f5f5;
    border: 1px solid rgba(114, 137, 218, 0.3);
    border-radius: 6px;
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(114, 137, 218, 0.2);
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    gap: 8px;
    font-family: 'Oxanium', sans-serif;
}

.discord-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(114, 137, 218, 0.4) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.3s, opacity 0.5s;
}

.discord-btn:hover {
    background-color: rgba(114, 137, 218, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(114, 137, 218, 0.3);
    border-color: rgba(114, 137, 218, 0.5);
    color: #7289da;
}

.discord-btn:active {
    transform: translateY(0);
}

.discord-btn:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

.discord-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.discord-btn:hover svg {
    transform: scale(1.1);
}

/* Responsive Design for Popup */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .popup-header {
        padding: 20px 20px 16px;
    }
    
    .popup-title {
        font-size: 1.3rem;
    }
    
    .popup-body {
        padding: 20px;
    }
    
    .requirements-list,
    .steps-list {
        gap: 12px;
    }
    
    .requirement-item,
    .step-item {
        padding: 12px;
    }
    
    .requirement-icon {
        width: 40px;
        height: 40px;
    }
    
    .requirement-icon img {
        width: 20px;
        height: 20px;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .popup-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        width: 98%;
        margin: 1%;
    }
    
    .popup-header {
        padding: 16px 16px 12px;
    }
    
    .popup-title {
        font-size: 1.2rem;
    }
    
    .popup-body {
        padding: 16px;
    }
    
    .requirements-section,
    .steps-section {
        margin-bottom: 24px;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .requirement-item,
    .step-item {
        padding: 10px;
        gap: 12px;
    }
    
    .requirement-icon {
        width: 36px;
        height: 36px;
    }
    
    .requirement-icon img {
        width: 18px;
        height: 18px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .requirement-text strong,
    .step-content strong {
        font-size: 0.9rem;
    }
    
    .requirement-text span,
    .step-content span {
        font-size: 0.8rem;
    }
    
    .popup-footer {
        padding: 12px 16px;
    }
    
    .footer-note {
        font-size: 0.8rem;
    }
    
    .discord-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
} 