/* Consolidated styles extracted from Pages/*.razor */

/* Badge helpers */
.badge-block {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px;
}

.badge-block .skill-badge {
    padding-right: 14px;
}

.badge-block .e-badge.e-badge-notification.e-badge-overlap {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 5;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 8px;
}

.badge-block .icons,
.badge-block .message {
    width: 28px;
    height: 28px;
    display: inline-block;
    background-size: 100% 100%;
}

/* Icon helpers / social icons */
.icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    background-color: transparent;
    border: none;
}

.icon-link:hover,
.icon-link:focus,
.icon-link:active,
.icon-link:focus-visible {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

.icon-link .svg_icons {
    border: none !important;
    background-color: transparent !important;
}

.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.facebook { background-image: url("/images/Facebook_Logo_Primary.png"); background-size: contain; background-repeat: no-repeat; width: 21px; height: 21px; display: inline-block; }
.youtube { background-image: url("/images/yt_icon_red_digital-21.png"); background-size: contain; background-repeat: no-repeat; width: 30px; height: 21px; display: inline-block; }
.linkedin { background-image: url("/images/LI-In-Bug.png"); background-size: contain; background-repeat: no-repeat; width: 25px; height: 21px; display: inline-block; }
.github { background-image: url("/images/github-mark.png"); background-size: contain; background-repeat: no-repeat; width: 21px; height: 21px; display: inline-block; }
.github2 { background-image: url("/images/github-mark-white.png"); background-size: contain; background-repeat: no-repeat; width: 21px; height: 21px; display: inline-block; }
.stackoverflow { background-image: url("/images/stackoverflow.png"); background-size: contain; background-repeat: no-repeat; width: 18px; height: 21px; display: inline-block; }
.blog { background-image: url("/images/Tumblr_Logos_2018.03.06_Android Icon Blue.png"); background-size: contain; background-repeat: no-repeat; width: 21px; height: 21px; display: inline-block; }
.FreelancerCom { background-image: url("https://static.cdnlogo.com/logos/f/88/freelancer.svg"); background-size: contain; background-repeat: no-repeat; width: 72px; height: 21px; display: inline-block; }
.GuruCom { background-image: url("/images/Guru-logo2.png"); background-size: contain; background-repeat: no-repeat; width: 72px; height: 21px; display: inline-block; }

/* Card / grid common styles used across pages */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    align-items: start;
}

.project-card {
    padding: 8px 12px;
    box-sizing: border-box;
    width: 100%;
}

.project-card .e-card-image img,
.project-card img {
    max-width: 100%;
    height: auto;
    display: block;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card_sample {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card_sample .e-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card_sample .e-card .e-card-content {
    flex: 1 1 auto;
    min-height: 62px;
}

/* Experience specific */
.experience-websites {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.website-line a {
    color: #0d6efd;
    text-decoration: underline;
    word-break: break-all;
}

/* Tag badge styles */
.project-tag-badge {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    white-space: nowrap;
}

.tag-badge {
    background-color: rgba(255, 255, 255, 0.8);
    color: #007bff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    white-space: nowrap;
}

/* Qualifications footer layout */
.qualification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.qualification-link { color: #0d6efd; text-decoration: underline; }
.qualification-year { font-weight: 700; }

/* Skill badge (single merged definition) */
.skill-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #2563eb;
    color: white;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.skill-badge:hover { background-color: #1d4ed8; transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

/* Dialog and review styles */
.dialog-content { padding: 20px; font-size: 14px; color: #333; }
.reviews-list { display: flex; flex-direction: column; gap: 12px; }
.review-item { padding: 12px; border: 1px solid #e1e1e1; border-radius: 4px; background: #f9f9f9; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-title { font-weight: 500; color: #222; margin-bottom: 0; font-size: 14px; }
.review-rating { display: flex; align-items: center; gap: 4px; }
.review-text { font-size: 15px; color: #111; margin-bottom: 4px; }
.review-meta { font-size: 12px; color: #777; margin-bottom: 8px; }

/* Helpers copied from Home for image captions and layout */
.img-container { position: relative; height: 100%; }
.img-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.5); color: #fff; padding: 10px; z-index: 10 !important; }
.img-caption.project-info-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); color: #fff; padding: 12px 45px; font-size: 14px; min-height: 80px; z-index: 10; box-sizing: border-box; }

/* Misc small helpers */
.row { max-width: 100vw; overflow-x: hidden; display:flex; justify-content:center; align-items:flex-start; margin:auto; }
.skills-section { margin: 0.5rem 0; text-align: center; }
.skills-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }

/* keep project header row */
.project-header-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.project-name { font-size:18px; font-weight:bold; margin:0; flex-grow:1; text-align:left; padding-right:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.project-links { display:flex; gap:12px; flex-shrink:0; }

/* small image icons sizing from Home */
.FacebookIcon, .ChatIcon, .AlarmIcon, .StarIcon { height:24px; width:24px; }

/* End consolidated pages styles */
