/* ==========================================================================
   HALSHANAS CERTIFICATE VERIFICATION PLATFORM - SYSTEM DESIGN STYLESHEET
   ========================================================================== */

/* Design Tokens & Core Variables */
:root {
    --bg-primary: #070311;
    --bg-secondary: #0c061b;
    --text-primary: #ffffff;
    --text-secondary: #a69fcb;
    --accent-purple: #8a00e6;
    --accent-pink: #ff2a7f;
    --accent-gold: #ffd000;
    --accent-orange: #ff7b00;
    
    --success-color: #00e676;
    --error-color: #ff1744;
    
    --glass-bg: rgba(20, 10, 35, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(138, 0, 230, 0.15);
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    
    --font-heading: 'Montserrat', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
}

/* Reset & Basic Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Premium Background Orbs (Glowing Atmospheric Visuals)
   -------------------------------------------------------------------------- */
.bg-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #0d061c 0%, var(--bg-primary) 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.28;
    mix-blend-mode: screen;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    top: -200px;
    left: -150px;
    animation: pulseOrb1 20s infinite alternate ease-in-out;
}

.orb-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-pink) 0%, transparent 75%);
    bottom: -250px;
    right: -100px;
    animation: pulseOrb2 25s infinite alternate ease-in-out;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-orange) 0%, transparent 70%);
    top: 30% ;
    left: 60% ;
    animation: pulseOrb3 18s infinite alternate ease-in-out;
}

@keyframes pulseOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 60px) scale(1.15); }
}

@keyframes pulseOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, -80px) scale(1.1); }
}

@keyframes pulseOrb3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -120px) scale(1.2); }
}

/* --------------------------------------------------------------------------
   Shared Glassmorphism Card Style
   -------------------------------------------------------------------------- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(130deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Header Navigation
   -------------------------------------------------------------------------- */
header {
    width: 100%;
    padding: 30px 5%;
    z-index: 10;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

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

.logo-text {
    color: var(--text-primary);
    margin: 0 4px;
}

.header-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header-badge i {
    font-size: 14px;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* --------------------------------------------------------------------------
   Main Wrapper & Hero Layout
   -------------------------------------------------------------------------- */
.main-wrapper {
    flex: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5% 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.hero-section {
    text-align: center;
    max-width: 750px;
    margin: 40px auto 40px;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 30%, #a69fcb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
}

.hero-subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Search & Query Bar
   -------------------------------------------------------------------------- */
.search-container {
    width: 100%;
    max-width: 680px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
}

.search-card {
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.search-card:hover, .search-card:focus-within {
    border-color: rgba(138, 0, 230, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px var(--glass-glow);
}

.input-group {
    display: flex;
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 6px 6px 6px 16px;
    align-items: center;
    transition: var(--transition-quick);
}

.input-group:focus-within {
    border-color: var(--accent-pink);
    background: rgba(0, 0, 0, 0.6);
}

.input-icon {
    font-size: 20px;
    color: var(--text-secondary);
    margin-right: 14px;
    transition: var(--transition-quick);
}

.input-group:focus-within .input-icon {
    color: var(--accent-pink);
    transform: scale(1.1);
}

#cert-id-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 0;
    min-width: 50px;
}

#cert-id-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0px;
    font-family: var(--font-body);
    font-size: 15px;
    text-transform: none;
    font-weight: 400;
}

#verify-btn {
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    border: none;
    outline: none;
    color: white;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(255, 42, 127, 0.25);
    transition: var(--transition-quick);
}

#verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 42, 127, 0.4);
    background: linear-gradient(135deg, #ff4c97 0%, #9e1aff 100%);
}

#verify-btn:active {
    transform: translateY(1px);
}

.search-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 6px;
}

.search-hint i {
    color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   Interactive Loader / Spinner
   -------------------------------------------------------------------------- */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 20px 0 40px;
    animation: fadeIn 0.4s ease forwards;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--accent-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-container p {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 1px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Dynamic Results Section
   -------------------------------------------------------------------------- */
.result-wrapper {
    width: 100%;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Verification Failed Card --- */
.error-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 30px;
    text-align: center;
    border-color: rgba(255, 23, 68, 0.2);
}

.error-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 23, 68, 0.1);
    border: 2px solid var(--error-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 0 25px rgba(255, 23, 68, 0.2);
}

.error-badge i {
    font-size: 36px;
    color: var(--error-color);
}

.error-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.error-message {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.error-retry-tips {
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 18px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    display: inline-block;
    max-width: 440px;
}

.error-retry-tips ul {
    margin-top: 8px;
    padding-left: 18px;
}

.error-retry-tips li {
    margin-bottom: 6px;
}

/* --- Verification Success Layout (Single Centered Card) --- */
.success-card-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-single-card {
    width: 100%;
    max-width: 600px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.success-single-card:hover {
    border-color: rgba(0, 230, 118, 0.25);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 230, 118, 0.1);
}

/* Details Section Card */
.details-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
}

.status-badge-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.status-check-orb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.1);
    border: 2px solid var(--success-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
}

.status-check-orb i {
    font-size: 22px;
    color: var(--success-color);
    animation: scaleCheck 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes scaleCheck {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.status-label-area {
    display: flex;
    flex-direction: column;
}

.status-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--success-color);
}

.status-sub {
    font-size: 13px;
    color: var(--text-secondary);
}

.recipient-headline {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.recipient-fullname {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 30px;
    word-break: break-word;
}

.details-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    margin-bottom: 30px;
}

/* Info Grid (Key-Values) */
.info-field-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.info-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.info-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.info-value.id-highlight {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
    width: 100%;
    padding: 40px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: auto;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-primary {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.accent-vyro {
    color: var(--accent-pink);
    font-weight: 600;
}

.accent-gdg {
    color: #4285f4;
    font-weight: 600;
}

.footer-secondary {
    font-size: 12px;
    color: rgba(166, 159, 203, 0.45);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   General Animation Utilities
   -------------------------------------------------------------------------- */
.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* --------------------------------------------------------------------------
   Responsive adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    header {
        padding: 20px 5%;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-section {
        margin: 25px auto 25px;
    }
    
    .details-card {
        padding: 30px 20px;
    }
}
