/**
 * Homepage Cards - Styles for the RetroProjects homepage project cards
 * Extracted from landing page style.css
 */

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: #667eea;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: #a0a0a0;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.section-header { margin-bottom: 20px; }

.projects-section { padding: 40px 0; }

.projects-section .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.project-card.featured {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
}

.project-card.featured:hover {
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.featured-ribbon {
    position: absolute;
    top: 16px;
    right: -32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 40px;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    font-size: 22px;
    margin-bottom: 18px;
}

.card-glow { display: none; }

.card-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    font-size: 11px;
    color: #667eea;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.card-desc {
    color: #a0a0a0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.card-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #c0c0c0;
}

.card-features li i { color: #4caf50; font-size: 14px; }

.card-footer-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.card-btn-domain {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    color: #667eea !important;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-btn-domain:hover {
    background: rgba(102, 126, 234, 0.25);
    transform: translateY(-1px);
}

.card-badge-soon {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(247, 164, 27, 0.15);
    border: 1px solid rgba(247, 164, 27, 0.3);
    border-radius: 12px;
    font-size: 11px;
    color: #f7a41b;
}

/* Responsive */
@media (max-width: 991px) {
    .projects-section .row {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    .section-title { font-size: 28px; }
}


/* === Mascot Box Animations === */
@keyframes amBounceIn {
  0% { transform: translateY(60px) scale(0.4); opacity: 0; }
  50% { transform: translateY(-15px) scale(1.05); opacity: 1; }
  70% { transform: translateY(5px) scale(0.97); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes amPopIn {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes amType {
  from { max-width: 0; }
  to { max-width: 400px; }
}
@keyframes amFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes amConfetti {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-50px) scale(0.5); opacity: 0; }
}

.mascot-bounce { animation: amBounceIn 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.3s both; }
.mascot-float { animation: amFloat 3s ease-in-out infinite 2s; }
.mascot-speech { animation: amPopIn 0.5s cubic-bezier(0.34,1.56,0.64,1) 1.1s both; }
.mascot-type { overflow: hidden; animation: amType 1.2s steps(22,end) 1.5s both; }
.mascot-subtitle { animation: amPopIn 0.4s ease 2.8s both; }
.mascot-confetti { animation: amConfetti 1.5s ease forwards; opacity: 0; }
.mascot-confetti:nth-child(1) { animation-delay: 1.5s; }
.mascot-confetti:nth-child(2) { animation-delay: 1.7s; }
.mascot-confetti:nth-child(3) { animation-delay: 1.6s; }
.mascot-confetti:nth-child(4) { animation-delay: 1.8s; }


/* === Card Feature Checkmarks (green) === */
.card-features li .bi-check2,
.card-features li i.bi-check2 {
    color: #4caf50 !important;
    font-size: 14px;
}

/* === Card Icon Colors per type === */
.project-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.project-card .card-icon .bi-database {
    color: #667eea;
}

.project-card .card-icon .bi-robot {
    color: #667eea;
}

.project-card .card-icon .bi-cart3 {
    color: #667eea;
}

/* === Star in featured ribbon === */
.featured-ribbon .bi-star-fill {
    color: #fff;
    font-size: 10px;
}

/* === Domain link as button === */
.card-footer-custom a.card-btn-domain {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    color: #667eea !important;
    font-size: 13px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.card-footer-custom a.card-btn-domain:hover {
    background: rgba(102, 126, 234, 0.25);
    transform: translateY(-1px);
}

/* === Fix section-tag icon alignment === */
.section-tag .bi {
    font-size: 14px;
}
