/**
 * Frontend Styles - Custom Boxes
 * Loaded on public website for custom text boxes
 */

/* Base Box Styles */
.ait-custom-box {
    margin: 30px auto;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 800px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ait-custom-box:hover {
    transform: translateY(-5px);
}

.ait-custom-box .ait-box-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.ait-custom-box .ait-box-content {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 25px;
    opacity: 0.95;
}

.ait-custom-box .ait-box-content p {
    margin-bottom: 10px;
}

.ait-custom-box .ait-box-button {
    display: inline-block;
    padding: 14px 35px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.ait-custom-box .ait-box-button::after {
    content: ' →';
    transition: transform 0.3s ease;
    display: inline-block;
}

.ait-custom-box .ait-box-button:hover::after {
    transform: translateX(5px);
}

/* Modern Gradient Style */
.ait-custom-box-modern-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.ait-custom-box-modern-gradient::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%);
    pointer-events: none;
}

.ait-custom-box-modern-gradient .ait-box-button {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    color: white;
    backdrop-filter: blur(10px);
}

.ait-custom-box-modern-gradient .ait-box-button:hover {
    background: white;
    color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255,255,255,0.4);
}

/* Neon Glow Style */
.ait-custom-box-neon-glow {
    background: #0d0d1a;
    color: #00ffff;
    border: 3px solid #00ffff;
    box-shadow: 
        0 0 30px rgba(0,255,255,0.6),
        inset 0 0 30px rgba(0,255,255,0.1);
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(0,255,255,0.6),
            inset 0 0 30px rgba(0,255,255,0.1);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(0,255,255,0.8),
            inset 0 0 40px rgba(0,255,255,0.2);
    }
}

.ait-custom-box-neon-glow .ait-box-title {
    text-shadow: 0 0 10px rgba(0,255,255,0.8);
}

.ait-custom-box-neon-glow .ait-box-button {
    background: transparent;
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 0 15px rgba(0,255,255,0.6);
}

.ait-custom-box-neon-glow .ait-box-button:hover {
    background: rgba(0,255,255,0.2);
    box-shadow: 0 0 25px rgba(0,255,255,1);
}

/* Minimal Border Style */
.ait-custom-box-minimal-border {
    background: white;
    color: #2c3e50;
    border: 4px solid #2c3e50;
    box-shadow: 10px 10px 0 rgba(44, 62, 80, 0.15);
}

.ait-custom-box-minimal-border:hover {
    box-shadow: 15px 15px 0 rgba(44, 62, 80, 0.25);
}

.ait-custom-box-minimal-border .ait-box-button {
    background: #2c3e50;
    border-color: #2c3e50;
    color: white;
}

.ait-custom-box-minimal-border .ait-box-button:hover {
    background: #34495e;
    border-color: #34495e;
    transform: scale(1.08);
}

/* Dark Tech Style */
.ait-custom-box-dark-tech {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    box-shadow: 0 15px 50px rgba(30, 60, 114, 0.5);
    position: relative;
    overflow: hidden;
}

.ait-custom-box-dark-tech::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.05),
        transparent
    );
    animation: techShine 4s linear infinite;
}

@keyframes techShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.ait-custom-box-dark-tech .ait-box-title {
    position: relative;
    z-index: 1;
}

.ait-custom-box-dark-tech .ait-box-content {
    position: relative;
    z-index: 1;
}

.ait-custom-box-dark-tech .ait-box-button {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    color: white;
    backdrop-filter: blur(15px);
    position: relative;
    z-index: 1;
}

.ait-custom-box-dark-tech .ait-box-button:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.6);
}

/* Android Green Style */
.ait-custom-box-android-green {
    background: linear-gradient(135deg, #3ddc84 0%, #07c160 100%);
    color: white;
    box-shadow: 0 15px 40px rgba(61, 220, 132, 0.5);
}

.ait-custom-box-android-green .ait-box-title::before {
    content: '🤖 ';
    font-size: 1.2em;
    display: inline-block;
    animation: robotBounce 1s ease-in-out infinite;
}

@keyframes robotBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.ait-custom-box-android-green .ait-box-button {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
    color: white;
}

.ait-custom-box-android-green .ait-box-button:hover {
    background: white;
    color: #07c160;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ait-custom-box {
        margin: 20px 10px;
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .ait-custom-box .ait-box-title {
        font-size: 22px;
    }
    
    .ait-custom-box .ait-box-content {
        font-size: 15px;
    }
    
    .ait-custom-box .ait-box-button {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .ait-custom-box-minimal-border {
        box-shadow: 5px 5px 0 rgba(44, 62, 80, 0.15);
    }
    
    .ait-custom-box-minimal-border:hover {
        box-shadow: 8px 8px 0 rgba(44, 62, 80, 0.25);
    }
}

@media (max-width: 480px) {
    .ait-custom-box {
        padding: 20px 15px;
    }
    
    .ait-custom-box .ait-box-title {
        font-size: 20px;
    }
    
    .ait-custom-box .ait-box-content {
        font-size: 14px;
    }
    
    .ait-custom-box .ait-box-button {
        padding: 10px 20px;
        font-size: 14px;
        display: block;
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .ait-custom-box {
        box-shadow: none !important;
        border: 2px solid #333;
        page-break-inside: avoid;
    }
    
    .ait-custom-box .ait-box-button {
        display: none;
    }
}
