/* ============================================
   Derap Dynamis Certificate System - Frontend
   Elegant Navy & Gold Professional Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --ddc-navy:   #0A1628;
    --ddc-navy2:  #122040;
    --ddc-gold:   #C9A84C;
    --ddc-gold2:  #E8C96A;
    --ddc-white:  #FFFFFF;
    --ddc-gray:   #F4F6FA;
    --ddc-gray2:  #8892A4;
    --ddc-green:  #10B981;
    --ddc-red:    #EF4444;
    --ddc-shadow: 0 20px 60px rgba(10,22,40,0.12);
    --ddc-radius: 16px;
}

.ddc-wrapper {
    font-family: 'DM Sans', sans-serif;
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    color: var(--ddc-navy);
}

/* HERO */
.ddc-hero {
    text-align: center;
    margin-bottom: 36px;
    padding: 56px 40px 40px;
    background: linear-gradient(135deg, var(--ddc-navy) 0%, var(--ddc-navy2) 100%);
    border-radius: var(--ddc-radius);
    position: relative;
    overflow: hidden;
}

.ddc-hero::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(201,168,76,0.08);
}

.ddc-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -30px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: rgba(201,168,76,0.05);
}

.ddc-hero-badge {
    width: 64px; height: 64px;
    background: rgba(201,168,76,0.15);
    border: 1.5px solid rgba(201,168,76,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    color: var(--ddc-gold);
    position: relative; z-index: 1;
}
.ddc-hero-badge svg { width: 30px; height: 30px; }

.ddc-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--ddc-white);
    margin: 0 0 12px;
    position: relative; z-index: 1;
    letter-spacing: -0.02em;
}

.ddc-hero-subtitle {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
    position: relative; z-index: 1;
}

/* CARD */
.ddc-card {
    background: var(--ddc-white);
    border-radius: var(--ddc-radius);
    padding: 32px;
    box-shadow: var(--ddc-shadow);
    margin-bottom: 24px;
    border: 1px solid rgba(10,22,40,0.06);
}

/* FORM */
.ddc-form-group { margin: 0; }
.ddc-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ddc-gray2);
    margin-bottom: 10px;
}

.ddc-input-row {
    display: flex;
    gap: 10px;
}

.ddc-input {
    flex: 1;
    padding: 14px 18px;
    border: 1.5px solid #DDE3EF;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: var(--ddc-navy);
    background: var(--ddc-gray);
    transition: all 0.2s;
    outline: none;
    letter-spacing: 0.04em;
}

.ddc-input:focus {
    border-color: var(--ddc-gold);
    background: var(--ddc-white);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.ddc-btn {
    padding: 14px 24px;
    background: var(--ddc-navy);
    color: var(--ddc-white);
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.ddc-btn:hover {
    background: var(--ddc-gold);
    color: var(--ddc-navy);
    transform: translateY(-1px);
}

.ddc-btn-icon svg { width: 16px; height: 16px; }

.ddc-hint {
    font-size: 0.8rem;
    color: var(--ddc-gray2);
    margin: 8px 0 0;
}

/* LOADING */
.ddc-loading {
    text-align: center;
    padding: 40px;
    background: var(--ddc-white);
    border-radius: var(--ddc-radius);
    box-shadow: var(--ddc-shadow);
    margin-bottom: 24px;
    border: 1px solid rgba(10,22,40,0.06);
}

.ddc-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(201,168,76,0.2);
    border-top-color: var(--ddc-gold);
    border-radius: 50%;
    animation: ddc-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes ddc-spin {
    to { transform: rotate(360deg); }
}

/* RESULTS */
.ddc-result {
    background: var(--ddc-white);
    border-radius: var(--ddc-radius);
    box-shadow: var(--ddc-shadow);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid rgba(10,22,40,0.06);
    animation: ddc-fadeIn 0.4s ease;
}

@keyframes ddc-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ddc-result-valid { border-top: 4px solid var(--ddc-green); }
.ddc-result-invalid { border-top: 4px solid var(--ddc-red); }

.ddc-result-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 32px;
    border-bottom: 1px solid rgba(10,22,40,0.06);
}

.ddc-result-icon {
    width: 52px; height: 52px; min-width: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.ddc-result-icon svg { width: 26px; height: 26px; }

.ddc-icon-valid  { background: rgba(16,185,129,0.1); color: var(--ddc-green); }
.ddc-icon-invalid { background: rgba(239,68,68,0.1); color: var(--ddc-red); }

.ddc-result-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--ddc-navy);
}

.ddc-result-subtitle {
    font-size: 0.875rem;
    color: var(--ddc-gray2);
    margin: 0;
    line-height: 1.5;
}

/* CERT DETAILS */
.ddc-cert-details { padding: 24px 32px; }

.ddc-detail-row {
    display: flex;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid rgba(10,22,40,0.05);
}
.ddc-detail-row:last-child { border-bottom: none; }

.ddc-detail-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ddc-gray2);
    width: 180px; min-width: 180px;
}

.ddc-detail-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ddc-navy);
    flex: 1;
}

.ddc-credential-id {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: var(--ddc-gray);
    padding: 3px 10px;
    border-radius: 6px;
    color: var(--ddc-navy);
    letter-spacing: 0.06em;
}

/* LINKEDIN TIP */
.ddc-linkedin-tip {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0 32px 24px;
    padding: 16px 20px;
    background: #EBF5FF;
    border-radius: 10px;
    font-size: 0.845rem;
    color: #1E3A5F;
    line-height: 1.6;
}
.ddc-linkedin-tip svg {
    width: 20px; min-width: 20px; height: 20px;
    margin-top: 2px;
    fill: #0A66C2;
}

/* NOT FOUND */
.ddc-contact {
    padding: 24px 32px;
    font-size: 0.875rem;
    color: var(--ddc-gray2);
    margin: 0;
}
.ddc-contact a { color: var(--ddc-navy); font-weight: 500; }

/* FOOTER */
.ddc-footer {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(10,22,40,0.08);
}

.ddc-footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 10px;
}

.ddc-footer-logo strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ddc-navy);
}

.ddc-footer-logo span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ddc-gold);
    font-weight: 500;
}

.ddc-footer p {
    font-size: 0.78rem;
    color: var(--ddc-gray2);
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .ddc-hero { padding: 40px 24px 32px; }
    .ddc-hero-title { font-size: 1.7rem; }
    .ddc-card { padding: 24px 20px; }
    .ddc-input-row { flex-direction: column; }
    .ddc-btn { width: 100%; justify-content: center; }
    .ddc-result-header { padding: 20px; }
    .ddc-cert-details { padding: 16px 20px; }
    .ddc-detail-row { flex-direction: column; gap: 4px; }
    .ddc-detail-label { width: auto; }
    .ddc-linkedin-tip { margin: 0 20px 20px; }
    .ddc-contact { padding: 20px; }
}
