/* assets/css/certifications.css - Certifications list (document style rows) */

:root {
    --cert-bg: rgba(255, 255, 255, 0.4);
    --cert-border: rgba(255, 255, 255, 0.6);
    --cert-icon-color: #1f6390;
}
body.dark-mode {
    --cert-bg: rgba(255, 255, 255, 0.05);
    --cert-border: rgba(255, 255, 255, 0.15);
    --cert-icon-color: #7aa9d0;
}

/* ----- CERTIFICATIONS CARD ----- */
.certs-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 3.2rem;
    padding: 2.5rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 20px 40px -16px rgba(0, 30, 60, 0.12);
    margin: 1rem 0 1.8rem;
}

.certs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* CERTIFICATION ROW (Document Layout) */
.cert-item {
    background: var(--cert-bg);
    backdrop-filter: blur(4px);
    border-radius: 2rem;
    padding: 1.5rem 2rem;
    border: 1px solid var(--cert-border);
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.cert-item:hover {
    background: var(--card-bg-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.1);
}

/* LEFT SIDE: Certificate Preview & Details */
.cert-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 2;
    min-width: 250px;
}

.cert-preview {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--cert-border);
    overflow: hidden;
    padding: 6px;
}
.cert-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.cert-preview i { font-size: 1.8rem; color: var(--cert-icon-color); }
body.dark-mode .cert-preview {
    background: rgba(255, 255, 255, 0.05);
}

.cert-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cert-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.1rem;
}
.cert-title a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.cert-title a:hover { color: #1f6390; }
body.dark-mode .cert-title a:hover { color: #7aa9d0; }

.cert-issuer {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.cert-issuer a { color: inherit; text-decoration: none; }
.cert-issuer a:hover { color: #1f6390; }

.cert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.cert-skills span {
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    padding: 0.15rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.cert-year {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.cert-year i { color: #1f6390; margin-right: 0.3rem; }

/* RIGHT SIDE: Action Button */
.cert-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: flex-end;
    min-width: 150px;
}

.cert-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1f6390;
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.cert-link-btn i { font-size: 0.8rem; }
.cert-link-btn:hover {
    background: transparent;
    color: #1f6390;
    border-color: #1f6390;
    transform: translateX(5px);
}
body.dark-mode .cert-link-btn:hover {
    color: #7aa9d0;
    border-color: #7aa9d0;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
    .hero-text h1 { font-size: 3rem; }
    .hero-text .subhead { font-size: 1rem; }
    .hero-text { padding: 2rem 1.8rem; }
}

@media (max-width: 800px) {
    .hero-avatar { margin-top: 0.8rem; }
}

@media (max-width: 768px) {
    .hero { flex-direction: column; align-items: start; padding: 1.8rem; }
    .hero-text { width: 100%; }

    /* Footer Left-Aligned for Small Screens */
    .footer {
        justify-content: flex-start;
        gap: 0.5rem 1.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 680px) {
    .hero-text h1 { font-size: 2.2rem; } /* after the 900px rule above */
    .hero-text .desc { font-size: 0.9rem; }
    .certs-card { padding: 1.5rem; }

    /* Stack certificate items on mobile */
    .cert-item {
        flex-direction: column;
        align-items: stretch;
        padding: 1.2rem 1.2rem;
        gap: 0.8rem;
    }
    .cert-left {
        flex-direction: row;
        min-width: auto;
        gap: 1rem;
        flex: 1;
    }
    .cert-preview {
        width: 55px;
        height: 55px;
        padding: 4px;
    }
    .cert-title { font-size: 1rem; }
    .cert-issuer { font-size: 0.8rem; }
    .cert-skills span { font-size: 0.6rem; }

    .cert-right {
        justify-content: flex-start;
        min-width: auto;
        margin-top: 0.3rem;
        border-top: 1px solid var(--badge-border);
        padding-top: 0.8rem;
    }
    .cert-link-btn { width: 100%; justify-content: center; padding: 0.6rem; }
}

/* ----- DARK MODE ----- */
body.dark-mode .certs-card {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 20px 40px -16px var(--shadow-color);
}
body.dark-mode .cert-year i { color: #7aa9d0; }
body.dark-mode .cert-issuer a:hover { color: #7aa9d0; }
