/* ZAP-Hosting Partnership Integration Styles */
/* Compatible with W33Keys Summer Theme */

/* Main ZAP-Hosting Section Styles */
#zap-hosting {
    position: relative;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* ZAP-Hosting Main Banner */
.zap-hosting-banner {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    border: 1px solid rgba(234, 88, 12, 0.5);
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.zap-hosting-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.zap-hosting-banner:hover::before {
    left: 100%;
}

.zap-hosting-banner:hover {
    box-shadow: 0 25px 50px rgba(234, 88, 12, 0.5);
    transform: translateY(-3px);
}

/* ZAP Logo Styling */
.zap-logo {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.zap-logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Server Cards Grid */
.zap-server-card {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(75, 85, 99, 0.5);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.zap-server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.zap-server-card:hover::before {
    transform: translateX(100%);
}

.zap-server-card:hover {
    background: rgba(31, 41, 55, 0.95);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--hover-border-color);
}

/* Server Card Hover Colors */
.zap-server-card.minecraft:hover {
    --hover-border-color: #10b981;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

.zap-server-card.vps:hover {
    --hover-border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.zap-server-card.linux:hover {
    --hover-border-color: #f59e0b;
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.3);
}

.zap-server-card.premium:hover {
    --hover-border-color: #a855f7;
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.3);
}

/* Coupon Code Styling */
.zap-coupon-code {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 2px solid #34d399;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    user-select: all;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.zap-coupon-code::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 ease;
}

.zap-coupon-code:hover::before {
    left: 100%;
}

.zap-coupon-code:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.5);
}

.zap-coupon-code:active {
    transform: scale(0.98);
}

/* Discount Badge */
.zap-discount-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
    animation: zapPulse 2s infinite;
}

@keyframes zapPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Social Media Icons (ZAP Style) */
.zap-social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.zap-social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zap-social-icon:hover::before {
    opacity: 1;
}

.zap-social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Platform-specific social colors */
.zap-social-twitter { background: linear-gradient(135deg, #1da1f2, #0d8bd9); }
.zap-social-instagram { background: linear-gradient(135deg, #e1306c, #fd5949, #fccc63); }
.zap-social-youtube { background: linear-gradient(135deg, #ff0000, #cc0000); }
.zap-social-twitch { background: linear-gradient(135deg, #9146ff, #772ce8); }
.zap-social-tiktok { background: linear-gradient(135deg, #000000, #fe2c55); }
.zap-social-facebook { background: linear-gradient(135deg, #1877f2, #165ed0); }
.zap-social-reddit { background: linear-gradient(135deg, #ff4500, #cc3700); }
.zap-social-threads { background: linear-gradient(135deg, #000000, #333333); }

/* Action Buttons */
.zap-btn-primary {
    background: linear-gradient(135deg, #ea580c, #dc2626);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.zap-btn-primary::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 ease;
}

.zap-btn-primary:hover::before {
    left: 100%;
}

.zap-btn-primary:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.4);
}

.zap-btn-secondary {
    border: 2px solid #ea580c;
    color: #ea580c;
    transition: all 0.3s ease;
}

.zap-btn-secondary:hover {
    background: #ea580c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.3);
}

/* Benefits Section */
.zap-benefits-section {
    background: linear-gradient(135deg, #374151, #1f2937);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.zap-benefit-item {
    transition: all 0.3s ease;
}

.zap-benefit-item:hover {
    transform: translateY(-5px);
}

.zap-benefit-item i {
    transition: all 0.3s ease;
}

.zap-benefit-item:hover i {
    transform: scale(1.2);
}

/* Loading and Animation States */
.zap-loading {
    opacity: 0.7;
    pointer-events: none;
}

.zap-fade-in {
    animation: zapFadeIn 0.6s ease-out;
}

@keyframes zapFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .zap-hosting-banner {
        margin-bottom: 2rem;
    }
    
    .zap-server-card {
        margin-bottom: 1rem;
    }
    
    .zap-social-icon {
        width: 50px;
        height: 50px;
    }
    
    .zap-coupon-code {
        font-size: 1rem;
        padding: 12px 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .zap-server-card {
        min-height: 200px;
    }
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    #zap-hosting {
        background: linear-gradient(135deg, #0f1419 0%, #000000 100%);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .zap-hosting-banner {
        border-width: 3px;
    }
    
    .zap-server-card {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .zap-hosting-banner,
    .zap-server-card,
    .zap-social-icon,
    .zap-coupon-code,
    .zap-btn-primary,
    .zap-btn-secondary,
    .zap-inner {
        transition: none;
        animation: none;
    }
    
    .zap-hosting-banner::before,
    .zap-server-card::before,
    .zap-coupon-code::before,
    .zap-btn-primary::before {
        display: none;
    }
}

/* ZAP-Hosting 3D Grid Cards */
.zap-wrapper {
    width: 100%;
    height: 400px;
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 40px 0;
}

.zap-inner {
    --w: 120px;
    --h: 180px;
    --translateZ: calc((var(--w) + var(--h)) + 20px);
    --rotateX: -15deg;
    --perspective: 1000px;
    position: absolute;
    width: var(--w);
    height: var(--h);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) perspective(var(--perspective));
    animation: zapRotating 25s linear infinite;
}

@keyframes zapRotating {
    from {
        transform: translate(-50%, -50%) perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(0);
    }
    to {
        transform: translate(-50%, -50%) perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(1turn);
    }
}

.zap-card {
    position: absolute;
    border: 2px solid rgba(var(--color-card));
    border-radius: 12px;
    overflow: hidden;
    inset: 0;
    transform: rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(var(--translateZ));
    background: rgba(var(--color-card), 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.zap-card:hover {
    border-color: rgba(var(--color-card));
    box-shadow: 0 10px 30px rgba(var(--color-card), 0.3);
    transform: rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(calc(var(--translateZ) + 20px)) scale(1.05);
    background: rgba(var(--color-card), 0.2);
}

.zap-card-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    text-align: center;
    background: radial-gradient(
        circle,
        rgba(var(--color-card), 0.1) 0%,
        rgba(var(--color-card), 0.3) 80%,
        rgba(var(--color-card), 0.5) 100%
    );
}

.zap-card-icon {
    font-size: 2rem;
    color: rgba(var(--color-card));
    margin-bottom: 10px;
    filter: brightness(1.5);
    transition: all 0.3s ease;
}

.zap-card:hover .zap-card-icon {
    transform: scale(1.2);
    filter: brightness(2);
}

.zap-card-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
    font-family: 'Orbitron', monospace;
}

.zap-card-desc {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}

/* ZAP-Hosting Enhanced Social Cards */
.zap-social-card {
    max-width: fit-content;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    gap: 1rem;
    backdrop-filter: blur(15px);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.192),
        inset 0 0 5px rgba(255, 255, 255, 0.274), 0 5px 5px rgba(0, 0, 0, 0.164);
    transition: 0.5s;
    padding: 1rem;
    margin: 0 auto;
}

.zap-social-card:hover {
    animation: ease-out 5s;
    background: rgba(173, 173, 173, 0.05);
}

.zap-social-card ul {
    padding: 1rem;
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    margin: 0;
}

.zap-social-card ul li {
    cursor: pointer;
}

.zap-svg {
    transition: all 0.3s;
    padding: 1rem;
    height: 60px;
    width: 60px;
    border-radius: 100%;
    color: rgb(255, 174, 0);
    fill: currentColor;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3),
        inset 0 0 5px rgba(255, 255, 255, 0.5), 0 5px 5px rgba(0, 0, 0, 0.164);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.25rem;
}

.zap-text {
    opacity: 0;
    border-radius: 5px;
    padding: 8px 12px;
    transition: all 0.3s;
    color: rgb(255, 174, 0);
    background-color: rgba(255, 255, 255, 0.3);
    position: absolute;
    z-index: 9999;
    box-shadow: -5px 0 1px rgba(153, 153, 153, 0.2),
        -10px 0 1px rgba(153, 153, 153, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.3),
        inset 0 0 5px rgba(255, 255, 255, 0.5), 0 5px 5px rgba(0, 0, 0, 0.082);
    font-size: 0.8rem;
    white-space: nowrap;
    font-weight: bold;
}

/* Isometric projection effects */
.zap-iso-pro {
    transition: 0.5s;
    position: relative;
}

.zap-iso-pro:hover .zap-svg {
    transform: translate(5px, -5px);
}

.zap-iso-pro:hover .zap-text {
    opacity: 1;
    transform: translate(25px, -2px) skew(-5deg);
}

.zap-iso-pro span {
    opacity: 0;
    position: absolute;
    border-radius: 50%;
    transition: all 0.3s;
    height: 60px;
    width: 60px;
    top: 1rem;
    left: 1rem;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3),
        inset 0 0 5px rgba(255, 255, 255, 0.5), 0 5px 5px rgba(0, 0, 0, 0.164);
}

.zap-iso-pro:hover span {
    opacity: 1;
}

.zap-iso-pro:hover span:nth-child(1) {
    opacity: 0.2;
}

.zap-iso-pro:hover span:nth-child(2) {
    opacity: 0.4;
    transform: translate(5px, -5px);
}

.zap-iso-pro:hover span:nth-child(3) {
    opacity: 0.6;
    transform: translate(10px, -10px);
}

/* Platform specific colors for social icons */
.zap-twitter { color: #1da1f2 !important; border-color: #1da1f2; }
.zap-instagram { color: #e1306c !important; border-color: #e1306c; }
.zap-youtube { color: #ff0000 !important; border-color: #ff0000; }
.zap-twitch { color: #9146ff !important; border-color: #9146ff; }
.zap-tiktok { color: #000000 !important; border-color: #000000; }
.zap-facebook { color: #1877f2 !important; border-color: #1877f2; }
.zap-reddit { color: #ff4500 !important; border-color: #ff4500; }
.zap-threads { color: #333333 !important; border-color: #333333; }

/* Mobile responsive adjustments for new components */
@media (max-width: 768px) {
    .zap-wrapper {
        height: 300px;
        margin: 20px 0;
    }
    
    .zap-inner {
        --w: 80px;
        --h: 120px;
    }
    
    .zap-card-icon {
        font-size: 1.5rem;
    }
    
    .zap-card-title {
        font-size: 0.7rem;
    }
    
    .zap-card-desc {
        font-size: 0.6rem;
    }
    
    .zap-social-card ul {
        gap: 1rem;
    }
    
    .zap-svg {
        height: 50px;
        width: 50px;
        padding: 0.75rem;
    }
    
    .zap-iso-pro span {
        height: 50px;
        width: 50px;
    }
}
