/* ==========================================
   FORMS.CSS
   Scope: Shared inputs · Feedback section
          Contact / Hit Me Up · Social cards
          WA + Email form · CV download
   ========================================== */

/* ==========================================
   SHARED INPUT STYLES
   ========================================== */
.feedback-input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.9rem;
    font-family: var(--font-base);
    outline: none;
    transition: background var(--transition-theme), border-color var(--transition-base), box-shadow var(--transition-base);
}

body.light .feedback-input {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
    color: var(--text-primary-light);
}

body.dark .feedback-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    color: var(--text-primary-dark);
}

body.light .feedback-input::placeholder { color: var(--text-muted-light); }
body.dark  .feedback-input::placeholder { color: var(--text-muted-dark); }

.feedback-input:focus {
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

body.dark .feedback-input:focus {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.feedback-textarea,
.wa-textarea {
    resize: vertical;
    min-height: 90px;
}

/* ==========================================
   FEEDBACK SECTION
   ========================================== */
.feedback-wrapper {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feedback-form-card { width: 100%; }

.feedback-desc {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    transition: color var(--transition-theme);
}

body.light .feedback-desc { color: var(--text-secondary-light); }
body.dark  .feedback-desc { color: var(--text-secondary-dark); }

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-btn {
    align-self: flex-start;
    padding: 0.75rem 1.8rem;
}

/* Feedback list & cards */
.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.feedback-empty {
    text-align: center;
    padding: 2rem;
}

body.light .feedback-empty p { color: var(--text-muted-light); }
body.dark  .feedback-empty p { color: var(--text-muted-dark); }

/* ── Guestbook: owner auth bar ── */
.owner-auth-bar {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.owner-auth-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0;
    transition: opacity var(--transition-fast);
}

body.light .owner-auth-link { color: var(--text-muted-light); }
body.dark  .owner-auth-link { color: var(--text-muted-dark); }
.owner-auth-link:hover { opacity: 0.65; }

.owner-auth-status { font-size: 0.78rem; font-weight: 600; }
body.light .owner-auth-status { color: var(--text-secondary-light); }
body.dark  .owner-auth-status { color: var(--text-secondary-dark); }

/* ==========================================
   GUESTBOOK — Threads / Twitter style feed
   ========================================== */
.feedback-list { gap: 0 !important; }

.gb-post {
    display: flex;
    gap: 0.85rem;
    padding: 1.3rem 0.15rem;
    border-top: 1px solid;
    opacity: 0;
    transform: translateY(16px);
}
.gb-post.fade-in { animation: fadeInUp 0.5s ease forwards; }
body.light .gb-post { border-color: rgba(0,0,0,0.07); }
body.dark  .gb-post { border-color: rgba(255,255,255,0.08); }
.gb-post:first-of-type { border-top: none; }

/* ── Feedback carousel: one post at a time, auto-rotating ── */
.feedback-carousel { width: 100%; padding: 1.6rem 1.7rem; }
.feedback-carousel .feedback-list { gap: 0 !important; }
.feedback-carousel .gb-post {
    border-top: none;
    padding: 0;
}
@media (prefers-reduced-motion: reduce) {
    .feedback-carousel .gb-post.fade-in { animation: none; opacity: 1; transform: none; }
}

.feedback-dots {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.3rem;
}
.feedback-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-theme), opacity var(--transition-fast);
}
body.light .feedback-dot { background: rgba(0,0,0,0.18); }
body.dark  .feedback-dot { background: rgba(255,255,255,0.22); }
.feedback-dot.active { transform: scale(1.35); }
body.light .feedback-dot.active { background: #0a0a0a; }
body.dark  .feedback-dot.active { background: #f0f0f0; }
.feedback-dot:hover { opacity: 0.8; }

.gb-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.05rem;
    flex-shrink: 0;
    overflow: hidden;
    transition: background var(--transition-theme), color var(--transition-theme);
}
body.light .gb-avatar { background: rgba(0,0,0,0.08); color: var(--text-primary-light); }
body.dark  .gb-avatar { background: rgba(255,255,255,0.10); color: var(--text-primary-dark); }
.gb-avatar img { width: 100%; height: 100%; object-fit: cover; }

.gb-avatar--owner { width: 38px; height: 38px; font-size: 0.78rem; font-weight: 800; }
body.light .gb-avatar--owner { background: #0a0a0a; color: #fff; }
body.dark  .gb-avatar--owner { background: #f0f0f0; color: #0a0a0a; }

.gb-main { flex: 1; min-width: 0; }
.gb-head { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.gb-name { font-size: 0.92rem; font-weight: 700; }
body.light .gb-name { color: var(--text-primary-light); }
body.dark  .gb-name { color: var(--text-primary-dark); }
.gb-time { font-size: 0.8rem; }
body.light .gb-time { color: var(--text-muted-light); }
body.dark  .gb-time { color: var(--text-muted-dark); }
.gb-from { font-size: 0.76rem; margin-top: 0.05rem; }
body.light .gb-from { color: var(--text-muted-light); }
body.dark  .gb-from { color: var(--text-muted-dark); }
.gb-text { font-size: 0.9rem; line-height: 1.6; margin-top: 0.35rem; white-space: pre-wrap; overflow-wrap: anywhere; }
body.light .gb-text { color: var(--text-secondary-light); }
body.dark  .gb-text { color: var(--text-secondary-dark); }

.gb-badge {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
    padding: 2px 7px; border-radius: 999px;
}
body.light .gb-badge { background: #0a0a0a; color: #fff; }
body.dark  .gb-badge { background: #f0f0f0; color: #0a0a0a; }

.gb-replies {
    margin-top: 0.9rem;
    display: flex; flex-direction: column; gap: 1rem;
    padding-left: 0.7rem;
    border-left: 2px solid;
}
body.light .gb-replies { border-color: rgba(0,0,0,0.08); }
body.dark  .gb-replies { border-color: rgba(255,255,255,0.10); }
.gb-reply { display: flex; gap: 0.6rem; align-items: flex-start; }

.gb-reply-to { margin-top: 0.9rem; font-size: 0.74rem; }
body.light .gb-reply-to { color: var(--text-muted-light); }
body.dark  .gb-reply-to { color: var(--text-muted-dark); }
.gb-reply-to strong { font-weight: 700; }

.gb-reply-form { margin-top: 0.45rem; display: flex; gap: 0.5rem; }
.gb-reply-input {
    flex: 1;
    min-height: 0 !important;
    padding: 0.55rem 0.9rem !important;
    font-size: 0.82rem !important;
}
.gb-reply-send {
    border: none;
    border-radius: var(--radius-md);
    padding: 0 1.1rem;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: opacity var(--transition-fast);
}
body.light .gb-reply-send { background: #0a0a0a; color: #fff; }
body.dark  .gb-reply-send { background: #f0f0f0; color: #0a0a0a; }
.gb-reply-send:hover { opacity: 0.85; }
.gb-reply-send:disabled { opacity: 0.5; cursor: default; }

/* ==========================================
   CONTACT — CV Download
   ========================================== */
.cv-download-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 3rem;
}

.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-base);
}

.cv-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

body.dark .cv-download-btn:hover {
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.10);
}

.cv-download-hint {
    font-size: 0.75rem;
    transition: color var(--transition-theme);
}

body.light .cv-download-hint { color: var(--text-muted-light); }
body.dark  .cv-download-hint { color: var(--text-muted-dark); }

/* ==========================================
   SOCIAL PROFILE CARDS
   ========================================== */
.social-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.social-profile-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.6rem;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: pointer;
}

.social-profile-card:hover { transform: translateY(-5px); }

body.light .social-profile-card:hover { box-shadow: var(--shadow-hover-light); }
body.dark  .social-profile-card:hover { box-shadow: var(--shadow-hover-dark); }

.social-profile-top {
    position: relative;
    width: fit-content;
}

.social-profile-avatar-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
}

/* Keep brand borders */
.social-profile-avatar-wrap--ig {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) border-box;
}

.social-profile-avatar-wrap--li {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #0077b5, #00a0dc) border-box;
}

body.dark .social-profile-avatar-wrap--ig {
    background: linear-gradient(#111, #111) padding-box,
                linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) border-box;
}

body.dark .social-profile-avatar-wrap--li {
    background: linear-gradient(#111, #111) padding-box,
                linear-gradient(135deg, #0077b5, #00a0dc) border-box;
}

.social-profile-avatar {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.social-profile-badge {
    position: absolute;
    bottom: 0; right: -4px;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Keep brand badge colors */
.social-profile-badge--ig {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-profile-badge--li { background: #0077b5; }

.social-profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.social-profile-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    transition: color var(--transition-theme);
}

body.light .social-profile-name { color: var(--text-primary-light); }
body.dark  .social-profile-name { color: var(--text-primary-dark); }

.social-profile-handle {
    font-size: 0.78rem;
    font-weight: 600;
    margin: 0;
    transition: color var(--transition-theme);
}

body.light .social-profile-handle { color: var(--text-secondary-light); }
body.dark  .social-profile-handle { color: var(--text-secondary-dark); }

.social-profile-desc {
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 0;
    transition: color var(--transition-theme);
}

body.light .social-profile-desc { color: var(--text-muted-light); }
body.dark  .social-profile-desc { color: var(--text-muted-dark); }

/* CTA buttons — keep brand colors */
.social-profile-cta {
    display: inline-block;
    align-self: flex-start;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    color: white;
    transition: all var(--transition-base);
}

.social-profile-cta--ig {
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
}

.social-profile-cta--li { background: #0077b5; }

.social-profile-card:hover .social-profile-cta {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ==========================================
   WA + EMAIL FORM
   ========================================== */
.wa-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.wa-form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wa-form-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.wa-form-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    transition: color var(--transition-theme);
}

body.light .wa-form-title { color: var(--text-primary-light); }
body.dark  .wa-form-title { color: var(--text-primary-dark); }

.wa-form-sub {
    font-size: 0.82rem;
    margin: 0;
    transition: color var(--transition-theme);
}

body.light .wa-form-sub { color: var(--text-muted-light); }
body.dark  .wa-form-sub { color: var(--text-muted-dark); }

.wa-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wa-textarea { min-height: 110px; }

.wa-form-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.wa-btn {
    flex: 1;
    min-width: 160px;
    padding: 0.8rem 1.2rem;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-align: center;
}

.wa-btn:hover {
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .feedback-btn { align-self: stretch; text-align: center; }
}

@media (max-width: 600px) {
    .social-cards {
        grid-template-columns: 1fr;
        max-width: 340px;
    }
    .wa-form-buttons { flex-direction: column; }
    .wa-btn { width: 100%; }
    .cv-download-btn { width: 100%; max-width: 280px; justify-content: center; }
}