/**
 * WhoKnew Views - Settings Page Styles
 * Shared styles for Free and Pro settings pages
 * Includes: animated gradients, header, footer, table styling
 * 
 * @package WHOKNEW_VIEWS_PACKAGE
 * @author WHOKNEW_VIEWS_AUTHOR
 */

/* Animated gradient keyframes */
@keyframes whoknew-gradient-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Header static blue gradient (Pro only) */
.whoknew-views-settings > h1 > .whoknew-header-text {
    display: inline-block;
    color: #1e3a8a; /* Fallback color if gradient fails */
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Footer animated green gradient */
.whoknew-footer-text {
    background: linear-gradient(90deg, #10b981 0%, #059669 25%, #10b981 50%, #059669 75%, #10b981 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
    animation: whoknew-gradient-flow 3s ease infinite;
}

/* Products tab table responsive styles (Pro only) */
.whoknew-views-settings {
    width: 100%;
    box-sizing: border-box;
}

.whoknew-views-settings table,
.whoknew-views-settings form,
.whoknew-views-settings div {
    max-width: 100%;
}

.wp-list-table.widefat {
    width: 100%;
}

.wp-list-table.widefat th,
.wp-list-table.widefat td {
    padding: 8px;
}

/* Products tab table column widths */
.wp-list-table.widefat th:nth-child(1),
.wp-list-table.widefat td:nth-child(1) { width: 50px; } /* Checkbox */

.wp-list-table.widefat th:nth-child(2),
.wp-list-table.widefat td:nth-child(2) { width: 25%; } /* Product */

.wp-list-table.widefat th:nth-child(3),
.wp-list-table.widefat td:nth-child(3) { width: 10%; } /* Custom */

.wp-list-table.widefat th:nth-child(4),
.wp-list-table.widefat td:nth-child(4) { width: 20%; } /* Active Settings */

.wp-list-table.widefat th:nth-child(5),
.wp-list-table.widefat td:nth-child(5) { width: 20%; } /* View Counts */

.wp-list-table.widefat th:nth-child(6),
.wp-list-table.widefat td:nth-child(6) { width: 15%; } /* Categories */

.wp-list-table.widefat th:nth-child(7),
.wp-list-table.widefat td:nth-child(7) { 
    width: 10%; 
    max-width: 120px; 
    vertical-align: middle; 
    text-align: center; 
} /* Actions */

/* Make action buttons much smaller with fixed width */
.wkviews-action-btn-small {
    padding: 2px 6px !important;
    font-size: 9px !important;
    line-height: 1 !important;
    min-height: 18px !important;
    height: 18px !important;
    white-space: nowrap !important;
    border-radius: 3px !important;
    font-weight: 500 !important;
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    display: inline-block !important;
}
