/* ==========================================================================
   Keron News Manager - Frontend Styles
   ========================================================================== */

/* --- General Wrapper --- */
.keron-news-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.keron-news-wrapper h3 {
    margin-top: 0;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* --- Form Elements --- */
#keron-news-form label {
    font-weight: 600;
    color: #334155;
    display: inline-block;
    margin-bottom: 5px;
}

#keron-news-form input[type="text"],
#keron-news-form input[type="date"],
#keron-news-form input[type="file"] {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 16px;
    color: #1e293b;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#keron-news-form input[type="text"]:focus,
#keron-news-form input[type="date"]:focus {
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

#keron-news-form input[type="submit"] {
    background-color: #0284c7;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#keron-news-form input[type="submit"]:hover {
    background-color: #0369a1;
}

/* --- Author Dashboard Table --- */
.keron-news-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 15px;
}

.keron-news-wrapper th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    padding: 12px 15px;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}

.keron-news-wrapper td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: middle;
}

.keron-news-wrapper tbody tr:hover {
    background-color: #f8fafc;
}

/* Dashboard Action Buttons */
.keron-news-wrapper .button-edit {
    display: inline-block;
    background: #eab308;
    color: #ffffff;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 8px;
    transition: background 0.2s;
}

.keron-news-wrapper .button-edit:hover {
    background: #ca8a04;
    color: #ffffff;
}

.keron-news-wrapper button[type="submit"] {
    background: #ef4444;
    color: #ffffff;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.keron-news-wrapper button[type="submit"]:hover {
    background: #dc2626;
}

/* --- Public News Grid Adjustments --- */
/* Note: Core layout is handled by inline PHP styles to ensure it works regardless of theme, but we add hover states here */
.keron-news-card {
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.keron-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.keron-news-card img {
    transition: opacity 0.2s ease;
}

.keron-news-card:hover img {
    opacity: 0.9;
}

/* Hide author info on single keron_news articles */
body.single-keron_news .author_info {
    display: none !important;
}