/* ============================================================
   tamalkundu.com — Custom overrides on top of Reeni theme
   Gold accent: #f5a623 | Dark bg: #0d0d0d
   ============================================================ */

/* --- Root variables --------------------------------------- */
:root {
    --tk-gold:   #f5a623;
    --tk-gold-dark: #d4891a;
    --tk-bg:     #0d0d0d;
    --tk-card:   #141414;
    --tk-border: rgba(245, 166, 35, 0.2);
}

/* --- Active nav link -------------------------------------- */
.tmp-mainmenu li.active > a,
.tmp-mainmenu li.active > a:hover {
    color: var(--tk-gold) !important;
}

/* --- Hero stat blocks ------------------------------------- */
.tk-stat-block {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--tk-card);
    border: 1px solid var(--tk-border);
    border-radius: 8px;
}
.tk-stat-block .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--tk-gold);
    line-height: 1;
}
.tk-stat-block .stat-label {
    margin-top: 0.5rem;
    font-size: var(--font-size-b1);
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Project cards --------------------------------------- */
.tk-project-card {
    background: var(--tk-card);
    border: 1px solid var(--tk-border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tk-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(245, 166, 35, 0.15);
}
.tk-project-card .card-body {
    padding: 1.5rem;
}
.tk-project-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}
.tk-project-card .card-outcome {
    font-size: 1.25rem;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.tk-project-card .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.tk-project-card .tech-tag {
    font-size: 1rem;
    padding: 0.2rem 0.6rem;
    background: rgba(245, 166, 35, 0.1);
    border: 1px solid var(--tk-border);
    border-radius: 12px;
    color: var(--tk-gold);
}
.tk-project-card .featured-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    background: var(--tk-gold);
    color: #000;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Post/writing cards ---------------------------------- */
.tk-post-card {
    background: var(--tk-card);
    border: 1px solid var(--tk-border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tk-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(245, 166, 35, 0.12);
}
.tk-post-card .platform-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tk-post-card .platform-badge.medium   { background: #000; color: #fff; border: 1px solid #333; }
.tk-post-card .platform-badge.linkedin { background: #0a66c2; color: #fff; }
.tk-post-card .platform-badge.site     { background: var(--tk-gold); color: #000; }
.tk-post-card .post-tags span {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid var(--tk-border);
    border-radius: 4px;
    color: #aaa;
    margin-right: 0.3rem;
    display: inline-block;
    margin-top: 0.3rem;
}

/* --- Now page -------------------------------------------- */
.tk-now-card {
    background: var(--tk-card);
    border-left: 3px solid var(--tk-gold);
    padding: 1.5rem 1.75rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
}
.tk-now-card .now-label {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--tk-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.tk-now-card .now-content {
    font-size: 1.5rem;
    color: #ddd;
    line-height: 1.6;
}

/* --- Contact form ---------------------------------------- */
.tk-contact-form .form-control {
    background: var(--tk-card);
    border: 1px solid var(--tk-border);
    color: #fff;
    border-radius: 6px;
}
.tk-contact-form .form-control:focus {
    background: var(--tk-card);
    border-color: var(--tk-gold);
    box-shadow: 0 0 0 0.2rem rgba(245, 166, 35, 0.15);
    color: #fff;
}
.tk-contact-form .form-control::placeholder { color: #666; }

/* --- Button sizing overrides ---------------------------- */
/* GitHub and other btn-sm buttons */
.tmp-btn.btn-sm {
    font-size: var(--font-size-b1);
}

/* "All Projects" primary button in featured project card */
.btn-all-projects {
    line-height: 45px;
    height: 45px;
}

/* All primary buttons including "View Projects" */
.tmp-btn {
    height: 48px;
    line-height: 48px;
}

/* "Contact Me" and other btn-border buttons in hero */
.tmp-btn.btn-border {
    line-height: 48px;
    height: 48px;
}

/* --- About skill cards ---------------------------------- */
.about-us-card {
    padding: 2rem !important;
}

/* --- Utility -------------------------------------------- */
.tk-gold { color: var(--tk-gold); }
.section-gap-top { padding-top: 80px; }
.section-gap-bottom { padding-bottom: 80px; }

/* --- Writing filter active state ------------------------ */
[data-filter].active {
    background: var(--tk-gold) !important;
    color: #000 !important;
    border-color: var(--tk-gold) !important;
}

/* --- Alert messages ------------------------------------- */
.tk-alert {
    padding: 0.875rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.tk-alert.success { background: rgba(39, 174, 96, 0.15); border: 1px solid rgba(39, 174, 96, 0.3); color: #27ae60; }
.tk-alert.error   { background: rgba(231, 76, 60, 0.15);  border: 1px solid rgba(231, 76, 60, 0.3);  color: #e74c3c; }

/* ============================================================
   Mobile Responsive Overrides
   ============================================================ */

@media (max-width: 991px) {
    /* Stats grid: 2 cols on tablet */
    .tk-stat-block .stat-number { font-size: 2.25rem; }

    /* Hero profile image — hide on small screens (theme handles it) */
    .bg-benner-img-four img { max-width: 260px; }

    /* About page skills — full width on tablet */
    .about-us-card { margin-bottom: 1rem; }
}

@media (max-width: 767px) {
    /* Stats: 2x2 grid on mobile */
    .tk-stat-block {
        padding: 1.25rem 1rem;
    }
    .tk-stat-block .stat-number { font-size: 2rem; }
    .tk-stat-block .stat-label  { font-size: 0.75rem; }

    /* Project cards: full width, no hover transform */
    .tk-project-card:hover { transform: none; }
    .tk-post-card:hover     { transform: none; }

    /* Now cards */
    .tk-now-card { padding: 1.25rem 1.25rem; }

    /* Contact form inputs — full width */
    .tk-contact-form .form-control { font-size: 1rem; }

    /* Breadcrumb title size */
    .breadcrumb-inner .title { font-size: 2rem; }

    /* Section gaps tighter on mobile */
    .section-gap-top    { padding-top: 50px; }
    .section-gap-bottom { padding-bottom: 50px; }

    /* Admin projects/posts form grids collapse to single col */
    .admin-form-two-col { grid-template-columns: 1fr !important; }

    /* Writing filter wrap nicely */
    [data-filter] { font-size: 0.75rem !important; }
}

@media (max-width: 575px) {
    /* Stats: single column on very small screens */
    .tk-stat-block .stat-number { font-size: 1.75rem; }

    /* Hero buttons stack */
    .button-area-banner-three { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
    .button-area-banner-three .tmp-btn { margin-left: 0 !important; }

    /* Post card padding */
    .tk-post-card { padding: 1.25rem; }

    /* Project card body */
    .tk-project-card .card-body { padding: 1.25rem; }
}
