/**
 * Keezhariyur Community Classifieds Premium Styling
 */

/* Import Google Font for modern clean look */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --kcc-primary: #0d9488;
    --kcc-primary-hover: #0f766e;
    --kcc-secondary: #4f46e5;
    --kcc-secondary-hover: #4338ca;
    --kcc-bg-light: #f8fafc;
    --kcc-card-bg: #ffffff;
    --kcc-text-dark: #0f172a;
    --kcc-text-muted: #64748b;
    --kcc-border: #e2e8f0;
    --kcc-border-focus: #3b82f6;
    --kcc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --kcc-shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --kcc-shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
    --kcc-radius-sm: 8px;
    --kcc-radius-md: 12px;
    --kcc-radius-lg: 18px;
    --kcc-font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --kcc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Wrapper Reset */
.kcc-board-wrapper,
.kcc-auth-wrapper,
.kcc-form-wrapper {
    font-family: var(--kcc-font);
    color: var(--kcc-text-dark);
    margin: 2rem 0;
    line-height: 1.6;
}

/* --- Core Buttons & UI --- */
.kcc-btn-primary {
    background: linear-gradient(135deg, var(--kcc-primary) 0%, #06b6d4 100%);
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--kcc-radius-md);
    text-decoration: none !important;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
    border: none;
    cursor: pointer;
    transition: var(--kcc-transition);
}
.kcc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}
.kcc-btn-primary span.dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* --- Notices Container --- */
.kcc-notices-container {
    margin-bottom: 1.5rem;
}
.kcc-notice {
    padding: 1rem 1.25rem;
    border-radius: var(--kcc-radius-sm);
    margin-bottom: 0.75rem;
    border-left: 4px solid transparent;
    font-size: 0.95rem;
    animation: kccSlideIn 0.3s ease;
}
.kcc-notice-error {
    background-color: #fef2f2;
    color: #991b1b;
    border-left-color: #ef4444;
}
.kcc-notice-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left-color: #22c55e;
}

/* --- Board Header --- */
.kcc-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--kcc-border);
    padding-bottom: 1rem;
}
.kcc-board-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--kcc-text-dark) 0%, var(--kcc-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Search & Filter Form --- */
.kcc-board-filter-form {
    background: var(--kcc-bg-light);
    padding: 1.25rem;
    border-radius: var(--kcc-radius-md);
    margin-bottom: 2rem;
    border: 1px solid var(--kcc-border);
}
.kcc-filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.kcc-filter-search {
    flex: 2;
    min-width: 200px;
}
.kcc-filter-category {
    flex: 1;
    min-width: 150px;
}
.kcc-filter-row input[type="text"],
.kcc-filter-row select {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid var(--kcc-border);
    border-radius: var(--kcc-radius-sm);
    background: #ffffff;
    font-family: var(--kcc-font);
    font-size: 0.95rem;
    transition: var(--kcc-transition);
}
.kcc-filter-row input[type="text"]:focus,
.kcc-filter-row select:focus {
    border-color: var(--kcc-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.kcc-btn-submit {
    background: var(--kcc-text-dark);
    color: #ffffff;
    padding: 0.65rem 1.5rem;
    border-radius: var(--kcc-radius-sm);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--kcc-transition);
}
.kcc-btn-submit:hover {
    background: var(--kcc-primary);
}
.kcc-btn-clear {
    color: var(--kcc-text-muted);
    text-decoration: underline;
    font-size: 0.9rem;
    cursor: pointer;
}

/* --- Classifieds Grid --- */
.kcc-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

/* Ad Card */
.kcc-ad-card {
    background: var(--kcc-card-bg);
    border-radius: var(--kcc-radius-lg);
    overflow: hidden;
    box-shadow: var(--kcc-shadow-sm);
    border: 1px solid var(--kcc-border);
    display: flex;
    flex-direction: column;
    transition: var(--kcc-transition);
}
.kcc-ad-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--kcc-shadow-lg);
}

/* Image Wrapper */
.kcc-ad-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    overflow: hidden;
}
.kcc-ad-img-wrapper img.kcc-ad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--kcc-transition);
}
.kcc-ad-card:hover img.kcc-ad-img {
    transform: scale(1.05);
}

/* Fallback Image Icon */
.kcc-ad-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: var(--kcc-text-muted);
}
.kcc-ad-img-fallback span.dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
}

/* Badges */
.kcc-ad-badge {
    position: absolute;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}
.kcc-badge-cat {
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
}
.kcc-badge-cond {
    top: 12px;
    right: 12px;
}
/* Condition Themes */
.kcc-cond-new { background: #d1fae5; color: #065f46; }
.kcc-cond-like-new { background: #dbeafe; color: #1e40af; }
.kcc-cond-good { background: #e0f2fe; color: #075985; }
.kcc-cond-fair { background: #fef3c7; color: #92400e; }
.kcc-cond-poor { background: #fee2e2; color: #991b1b; }

/* Card Body */
.kcc-ad-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.kcc-ad-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--kcc-text-dark);
}
.kcc-ad-price-tag {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ef4444 !important;
    margin-bottom: 0.75rem;
}
.kcc-currency-symbol {
    color: #ef4444 !important;
    margin-right: 2px;
}
.kcc-ad-desc {
    font-size: 0.88rem;
    color: var(--kcc-text-muted);
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

/* Seller Info Box */
.kcc-ad-seller-info {
    background: var(--kcc-bg-light);
    border-radius: var(--kcc-radius-sm);
    padding: 0.85rem;
    border: 1px solid var(--kcc-border);
    margin-top: auto;
}
.kcc-ad-seller-info p {
    margin: 0;
    font-size: 1.05rem !important;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.kcc-ad-seller-info p span.dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    color: var(--kcc-primary);
}
.kcc-seller-name {
    font-weight: 600 !important;
    margin-bottom: 0.35rem !important;
}
.kcc-seller-contact a {
    color: var(--kcc-secondary) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Card Footer */
.kcc-ad-footer {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--kcc-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}
.kcc-ad-date {
    font-size: 0.78rem;
    color: var(--kcc-text-muted);
}

/* Owner/Admin Action Panel */
.kcc-ad-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}
.kcc-action-btn {
    border: none;
    background: transparent;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--kcc-transition);
}
.kcc-edit-btn {
    color: var(--kcc-primary);
}
.kcc-edit-btn:hover {
    background: rgba(13, 148, 136, 0.1);
}
.kcc-delete-btn {
    color: #ef4444;
}
.kcc-delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}
.kcc-delete-ad-form {
    margin: 0;
    display: inline;
}

/* Pagination */
.kcc-pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2rem;
}
.kcc-pagination .page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid var(--kcc-border);
    border-radius: var(--kcc-radius-sm);
    text-decoration: none;
    color: var(--kcc-text-dark);
    font-weight: 500;
    transition: var(--kcc-transition);
}
.kcc-pagination .page-numbers.current,
.kcc-pagination .page-numbers:hover {
    background: var(--kcc-primary);
    border-color: var(--kcc-primary);
    color: #ffffff;
}

.kcc-no-ads {
    text-align: center;
    padding: 3rem;
    background: var(--kcc-bg-light);
    border-radius: var(--kcc-radius-md);
    border: 2px dashed var(--kcc-border);
    color: var(--kcc-text-muted);
}

/* --- Auth Login & Register Form --- */
.kcc-auth-wrapper {
    max-width: 480px;
    margin: 3rem auto;
    background: var(--kcc-card-bg);
    border-radius: var(--kcc-radius-lg);
    box-shadow: var(--kcc-shadow-lg);
    border: 1px solid var(--kcc-border);
    overflow: hidden;
}
.kcc-auth-tabs {
    display: flex;
    background: var(--kcc-bg-light);
    border-bottom: 1px solid var(--kcc-border);
}
.kcc-tab-btn {
    flex: 1;
    padding: 1.25rem;
    border: none;
    background: transparent;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--kcc-font);
    color: var(--kcc-text-muted);
    cursor: pointer;
    transition: var(--kcc-transition);
}
.kcc-tab-btn.active {
    color: var(--kcc-primary);
    background: var(--kcc-card-bg);
    border-bottom: 2px solid var(--kcc-primary);
}
.kcc-tab-panel {
    display: none;
    padding: 2rem;
}
.kcc-tab-panel.active {
    display: block;
}
.kcc-sub-tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--kcc-border);
    padding-bottom: 0.75rem;
}
.kcc-sub-tabs label {
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.kcc-form-group {
    margin-bottom: 1.25rem;
}
.kcc-form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
    font-weight: 600;
}
.kcc-auth-form input[type="text"],
.kcc-auth-form input[type="password"],
.kcc-auth-form input[type="email"],
.kcc-auth-form input[type="tel"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--kcc-border);
    border-radius: var(--kcc-radius-sm);
    font-family: var(--kcc-font);
    font-size: 0.95rem;
    transition: var(--kcc-transition);
}
.kcc-auth-form input:focus {
    border-color: var(--kcc-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.kcc-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--kcc-primary) 0%, var(--kcc-secondary) 100%);
    color: #ffffff;
    padding: 0.85rem;
    border-radius: var(--kcc-radius-sm);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--kcc-transition);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}
.kcc-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}
.kcc-auth-response-msg {
    margin: 1.5rem 2rem 0 2rem;
}

.kcc-otp-phone-step,
.kcc-otp-verify-step {
    animation: kccFadeIn 0.3s ease;
}

.kcc-back-to-phone-btn {
    background: transparent;
    border: none;
    color: var(--kcc-text-muted);
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 1rem;
    display: block;
    width: 100%;
    text-align: center;
}

/* Auth Prompt logic on Submit */
.kcc-auth-prompt {
    background: var(--kcc-bg-light);
    border-radius: var(--kcc-radius-lg);
    padding: 2rem;
    border: 1px solid var(--kcc-border);
}
.kcc-auth-prompt h3 {
    text-align: center;
    margin-top: 0;
    font-size: 1.4rem;
}

/* --- Ad Submission Form --- */
.kcc-form-wrapper {
    max-width: 680px;
    margin: 3rem auto;
    background: var(--kcc-card-bg);
    border-radius: var(--kcc-radius-lg);
    box-shadow: var(--kcc-shadow-lg);
    border: 1px solid var(--kcc-border);
    padding: 2.5rem;
}
.kcc-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    border-bottom: 2px solid var(--kcc-border);
    padding-bottom: 0.75rem;
}
.kcc-frontend-form input[type="text"],
.kcc-frontend-form select,
.kcc-frontend-form input[type="tel"],
.kcc-frontend-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--kcc-border);
    border-radius: var(--kcc-radius-sm);
    font-family: var(--kcc-font);
    font-size: 0.95rem;
    background: #ffffff;
    transition: var(--kcc-transition);
}
.kcc-frontend-form input:focus,
.kcc-frontend-form select:focus,
.kcc-frontend-form textarea:focus {
    border-color: var(--kcc-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.kcc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.kcc-frontend-form label span.required {
    color: #ef4444;
}
.kcc-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
.kcc-cancel-btn {
    background: #f1f5f9;
    color: var(--kcc-text-dark) !important;
    padding: 0.85rem 1.5rem;
    border-radius: var(--kcc-radius-sm);
    text-decoration: none !important;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--kcc-transition);
}
.kcc-cancel-btn:hover {
    background: #e2e8f0;
}
.kcc-form-current-img {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: var(--kcc-bg-light);
    border-radius: var(--kcc-radius-sm);
    display: inline-block;
}
.kcc-form-current-img p {
    margin: 0 0 0.25rem 0;
    font-size: 0.8rem;
    font-weight: 500;
}
.kcc-form-current-img img {
    border-radius: 4px;
    max-height: 80px;
    width: auto;
}

/* Animations */
@keyframes kccSlideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes kccFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive overrides moved to the bottom of the stylesheet */

/* Force select inputs to be visible in case the theme or active scripts hide them */
.kcc-filter-row select,
.kcc-frontend-form select {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    position: static !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
}

.kcc-filter-row select option,
.kcc-frontend-form select option {
    color: #0f172a !important;
    background-color: #ffffff !important;
}

/* Multi-photo Form Upload Grid */
.kcc-image-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 0.75rem;
}
.kcc-image-slot {
    background: var(--kcc-bg-light);
    border: 1px dashed var(--kcc-border);
    border-radius: var(--kcc-radius-sm);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.kcc-slot-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--kcc-text-dark);
}
.kcc-image-slot input[type="file"] {
    font-size: 0.8rem;
    width: 100%;
}
.kcc-image-slot .kcc-form-current-img {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.kcc-delete-img-label {
    font-size: 0.75rem;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

/* Image Slider inside ad card */
.kcc-ad-img-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.kcc-slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.kcc-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f1f5f9;
}
.kcc-slide.active {
    opacity: 1;
    z-index: 1;
}
.kcc-slide img.kcc-ad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Controls */
.kcc-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff !important;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    transition: var(--kcc-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.kcc-ad-img-wrapper:hover .kcc-slider-btn {
    opacity: 1;
}
.kcc-slider-prev {
    left: 8px;
}
.kcc-slider-next {
    right: 8px;
}
.kcc-slider-btn:hover {
    background: var(--kcc-primary);
}

/* Dots Navigation */
.kcc-slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 2;
    background: rgba(15, 23, 42, 0.45);
    padding: 4px 8px;
    border-radius: 50px;
    backdrop-filter: blur(2px);
}
.kcc-slider-dots .dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--kcc-transition);
}
.kcc-slider-dots .dot.active {
    background: #ffffff;
    transform: scale(1.25);
}

/* Disabled Inputs Styling */
.kcc-frontend-form input:disabled,
.kcc-frontend-form select:disabled,
.kcc-frontend-form textarea:disabled {
    background-color: #f1f5f9 !important;
    color: var(--kcc-text-muted) !important;
    border-color: var(--kcc-border) !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* Thumbnail Gallery Styles on Cards */
.kcc-ad-thumbnails {
    display: flex;
    gap: 8px;
    padding: 8px 1.25rem;
    background: #fafafa;
    border-bottom: 1px solid var(--kcc-border);
}
.kcc-thumbnail-item {
    width: 48px;
    height: 48px;
    border-radius: var(--kcc-radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--kcc-transition);
    opacity: 0.6;
}
.kcc-thumbnail-item:hover,
.kcc-thumbnail-item.active {
    opacity: 1;
    border-color: var(--kcc-primary);
}
.kcc-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Social Sharing Container --- */
.kcc-ad-share-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    margin-top: 0.85rem;
    border-top: 1px dashed var(--kcc-border);
}
.kcc-share-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--kcc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.kcc-share-buttons {
    display: flex;
    gap: 0.5rem;
}
.kcc-share-btn {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: #f1f5f9;
    color: var(--kcc-text-muted);
    transition: var(--kcc-transition);
    padding: 0;
}
.kcc-share-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: var(--kcc-transition);
}
/* Brand Colors and Hover effects */
.kcc-share-whatsapp:hover {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}
.kcc-share-facebook:hover {
    background: #1877f2;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.3);
}
.kcc-share-twitter:hover {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3);
}
.kcc-share-copy:hover {
    background: var(--kcc-primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}
.kcc-share-copy svg {
    fill: none; /* Copy icon uses stroke, not fill */
}

/* Copy Link Tooltip */
.kcc-copy-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--kcc-text-dark);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--kcc-transition);
    z-index: 10;
}
.kcc-copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--kcc-text-dark);
}
.kcc-copy-tooltip.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive Overrides */
@media (max-width: 600px) {
    .kcc-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .kcc-board-header {
        flex-direction: column;
        align-items: stretch;
    }
    .kcc-board-header a.kcc-post-ad-btn {
        justify-content: center;
    }
    .kcc-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    .kcc-image-slots {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    /* Mobile-optimized social sharing touch targets */
    .kcc-share-btn {
        width: 38px;
        height: 38px;
    }
    .kcc-share-btn svg {
        width: 18px;
        height: 18px;
    }
    .kcc-share-buttons {
        gap: 0.65rem;
    }
}

/* Target Ad Card Highlight Effect */
.kcc-ad-card:target {
    animation: kccAdFlash 2.5s ease-out;
    border-color: var(--kcc-primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.25), var(--kcc-shadow-lg);
}
@keyframes kccAdFlash {
    0% {
        background-color: rgba(13, 148, 136, 0.15);
        transform: scale(1.02);
    }
    100% {
        background-color: var(--kcc-card-bg);
        transform: scale(1);
    }
}
