/* ==========================================================================
   iK Enterprises Homepage Style Sheet - Glassmorphism UI
   ========================================================================== */

:root {
    --bg-main: #0B0F19;
    --bg-card: rgba(17, 24, 39, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(6, 182, 212, 0.35);
    
    /* Primary Colors */
    --accent: #4F46E5;        /* Indigo */
    --accent-glow: rgba(79, 70, 229, 0.4);
    --cyan: #06B6D4;          /* Cyan */
    --cyan-glow: rgba(6, 182, 212, 0.4);
    
    /* Text Color Palette */
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    /* Semantic Colors */
    --success: #10B981;
    
    /* Animations & Curves */
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --transition-speed: 0.25s;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* Glowing Decorative Blurred Orbs */
.glow-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.18;
    pointer-events: none;
}

.bg-purple {
    background: var(--accent);
    top: -50px;
    right: -100px;
}

.bg-blue {
    background: var(--cyan);
    bottom: -100px;
    left: -150px;
}

/* Layout Wrapper */
.app-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Header */
.app-header {
    text-align: center;
    margin-bottom: 10px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-accent {
    background: linear-gradient(135deg, var(--cyan), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

/* Common Card Base Style */
.card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

/* Search Bar Section */
.search-section {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 6px 12px;
    width: 100%;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.search-box:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.25);
}

.search-icon {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-right: 12px;
}

.search-box input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.1rem;
    padding: 10px 0;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: linear-gradient(135deg, var(--cyan), var(--accent));
    border: none;
    border-radius: var(--border-radius-md);
    color: white;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 24px;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.search-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

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

/* Live Exchange Rates Widget */
.rates-section {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.rates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 12px;
}

.rates-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rate-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.currency-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.rate-value {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

/* Portals & Apps Section */
.portals-container {
    margin-top: 10px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 4px;
}

.portals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Portal App Cards */
.portal-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.portal-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: 0 10px 30px -10px var(--cyan-glow);
    transform: translateY(-3px);
}

.portal-card-top {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portal-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(79, 70, 229, 0.15));
    border: 1px solid var(--card-border-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--cyan);
    transition: transform var(--transition-speed) ease;
}

.portal-card:hover .portal-icon-wrapper {
    transform: scale(1.08) rotate(3deg);
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--cyan), var(--accent));
}

.portal-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.portal-info p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.5;
}

.portal-card-bottom {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--cyan);
    font-weight: 600;
}

.category-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* Ad Container */
.ad-container {
    margin: 10px auto;
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    overflow: hidden;
}

/* Footer styling */
.app-footer {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.app-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.app-footer a:hover {
    color: var(--cyan);
    text-decoration: underline;
}

.footer-tagline {
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 6px;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 900px) {
    .portals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .app-container {
        padding: 20px 15px;
        gap: 20px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .rates-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .portals-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
        gap: 10px;
        background: transparent;
        border: none;
        padding: 0;
    }
    
    .search-box input {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--card-border);
        border-radius: var(--border-radius-md);
        padding: 12px 16px 12px 40px;
        width: 100%;
    }
    
    .search-icon {
        position: absolute;
        margin-top: 16px;
        margin-left: 16px;
    }
    
    .search-btn {
        width: 100%;
        padding: 12px;
    }
}
