/* ===== NIBIZI TECHNOLOGIES - PORTAL STYLES ===== */

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    color: white;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 40px;
}

.sacred-heart-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(45deg, #ff6b35, #f7931e, #ffcc02);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.sacred-heart-logo::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: #c41e3a;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform: rotate(-45deg);
    top: 50%;
    left: 50%;
    margin-left: -30px;
    margin-top: -30px;
}

.sacred-heart-logo::after {
    content: '✝';
    position: absolute;
    font-size: 24px;
    color: #ffcc02;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.flame {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: #ff6b35;
    animation: flicker 1.5s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% { opacity: 1; transform: translateX(-50%) rotate(-2deg); }
    100% { opacity: 0.8; transform: translateX(-50%) rotate(2deg); }
}

.header h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ffcc02, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 1.3em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.motto {
    font-style: italic;
    color: #ffcc02;
    font-size: 1.1em;
    margin-top: 15px;
}

/* Stats Cards */
.download-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #ffcc02;
    display: block;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.app-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.app-card::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.5s;
}

.app-card:hover::before {
    left: 100%;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #ffcc02;
}

.app-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2.5em;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.app-icon img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.app-card:hover .app-icon img {
    transform: scale(1.1) rotate(3deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4)) brightness(1.1);
}

.app-icon.sacred-heart {
    background: linear-gradient(135deg, #8B0000, #DC143C, #FFD700);
    border: 3px solid #FFD700;
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.6), 0 0 60px rgba(255, 215, 0, 0.4);
    animation: sacred-glow 2s ease-in-out infinite alternate;
}

@keyframes sacred-glow {
    0% { 
        box-shadow: 0 0 30px rgba(220, 20, 60, 0.6), 0 0 60px rgba(255, 215, 0, 0.4);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 40px rgba(220, 20, 60, 0.8), 0 0 80px rgba(255, 215, 0, 0.6);
        transform: scale(1.05);
    }
}

.app-card h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ffcc02;
}

.app-card p {
    margin-bottom: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

.app-features {
    list-style: none;
    margin-bottom: 25px;
}

.app-features li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
}

.app-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.download-section {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 15px;
}

.status-available {
    background: #4CAF50;
    color: white;
}

.status-coming {
    background: #ff6b35;
    color: white;
}

/* Prayer Section */
.prayer-section {
    animation: prayerGlow 3s ease-in-out infinite;
}

@keyframes prayerGlow {
    0% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    }
    100% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
}

.prayer-button:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6) !important;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 50px;
}

/* Assistant Widget */
#nibizi-assistant-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2000;
}

#nibizi-assistant-modal {
    display: none;
    position: fixed;
    right: 24px;
    bottom: 80px;
    width: 360px;
    max-width: 90%;
    height: 520px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    z-index: 2001;
    overflow: hidden;
    flex-direction: column;
}

#assistant-messages {
    flex: 1;
    padding: 12px;
    overflow: auto;
    background: #f7f9fc;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 2.5em;
    }
    
    .download-section {
        justify-content: center;
    }

    .prayer-section {
        padding: 30px 20px !important;
        font-size: 0.9em;
    }
    
    #open-assistant { 
        opacity: 0.85; 
    }
    
    #open-assistant:active { 
        opacity: 1; 
    }

    #nibizi-assistant-modal { 
        width: 90%; 
        height: 65vh; 
        right: 5%; 
        bottom: 100px; 
    }
    
    #nibizi-assistant-button { 
        right: 14px; 
        bottom: 14px; 
    }
}
