/* Horse Jokes Dashboard Styles */
.gallop-gags-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    margin-bottom: 20px;
}

.gallop-gags-add-joke {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.gallop-gags-message {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.gallop-gags-message.success {
    background: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.gallop-gags-message.error {
    background: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

#gallop-gags-joke-form .form-group {
    margin-bottom: 15px;
}

#gallop-gags-joke-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

#gallop-gags-joke-form input[type="text"],
#gallop-gags-joke-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* File upload styles */
input[type="file"] {
    display: block;
    margin-top: 5px;
    border: 1px solid #ddd;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.description {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* Media Upload Styles */
.form-group select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    height: 36px;
}

.gallop-gags-joke-item {
    background: #f9f9f9;
    border: 1px solid #e3e3e3;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.gallop-gags-joke-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.joke-content {
    margin: 15px 0;
}

.joke-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 0.9em;
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.joke-date {
    font-style: italic;
}

.joke-likes {
    display: flex;
    align-items: center;
}

.like-button {
    background: none;
    border: 1px solid #ddd;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    transition: all 0.2s;
}

.like-button:hover {
    background: #f0f0f0;
}

.like-button.liked {
    background: #ffefef;
    border-color: #ffcccc;
    color: #e74c3c;
}

.like-icon {
    margin-right: 5px;
    font-size: 1.2em;
}

.likes-count-only {
    color: #666;
    display: flex;
    align-items: center;
}

/* Image display styles */
.joke-image {
    margin-bottom: 15px;
    text-align: center;
}

.joke-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.joke-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.joke-widget-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Audio Player Styles */
.joke-audio {
    margin-bottom: 15px;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.joke-audio-player, .joke-widget-audio-player {
    width: 100%;
    height: 40px;
    max-width: 500px;
    border-radius: 4px;
}

/* Video Player Styles */
.joke-video {
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.joke-video-player {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 500px;
}

.joke-widget-video-player {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.joke-media-container {
    margin: 15px 0;
}

.media-upload {
    background: #f9f9f9;
    padding: 10px;
    border: 1px solid #eee;
    margin-top: 5px;
}

/* Admin Analytics Page Styles */
.gallop-gags-analytics-filters {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.gallop-gags-analytics-filters .filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.gallop-gags-analytics-filters label {
    margin-right: 8px;
    font-weight: 600;
}

.gallop-gags-analytics-filters select, 
.gallop-gags-analytics-filters input[type="date"] {
    height: 30px;
    margin-right: 10px;
    min-width: 150px;
}

.gallop-gags-analytics-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#custom_date_fields {
    display: inline-flex;
    align-items: center;
    margin: 0 10px;
}

#custom_date_fields label {
    margin-right: 5px;
    font-weight: normal;
}

.gallop-gags-analytics-table-container {
    margin-top: 20px;
    overflow-x: auto;
}

/* Top Monthly Jokes Widget Styles */
.widget-top-monthly-jokes {
    margin-top: 10px;
}

.widget-top-joke {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.widget-top-joke:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget-top-joke .joke-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.widget-top-joke .joke-title a {
    color: #333;
    text-decoration: none;
}

.widget-top-joke .joke-title a:hover {
    color: #0073aa;
    text-decoration: underline;
}

.widget-top-joke .joke-content {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

.widget-top-joke .joke-meta {
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
    color: #888;
}

.widget-top-joke .joke-likes {
    display: flex;
    align-items: center;
}

.widget-top-joke .like-icon {
    font-size: 14px;
    margin-right: 3px;
}

/* Single Horse Joke Template Styles */
.single-horse-joke {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.single-joke-article {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.joke-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.joke-title {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.joke-meta-info {
    font-size: 14px;
    color: #888;
    display: flex;
    gap: 15px;
}

.single-horse-joke .joke-media-container {
    margin: 25px 0;
    text-align: center;
}

.single-horse-joke .joke-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.single-horse-joke .joke-audio-player,
.single-horse-joke .joke-video-player {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: block;
}

.single-horse-joke .joke-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

.joke-interaction {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.joke-likes-container {
    display: flex;
    align-items: center;
}

.single-horse-joke .like-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.single-horse-joke .like-button:hover {
    background: #f0f0f0;
}

.single-horse-joke .like-button.liked {
    background: #ffefef;
    border-color: #ffcccc;
}

.single-horse-joke .like-icon {
    font-size: 20px;
    margin-right: 8px;
}

.single-horse-joke .like-text {
    margin-left: 5px;
}

.like-count-container {
    display: flex;
    align-items: center;
    font-size: 16px;
}

.login-to-like {
    margin-left: 15px;
    font-size: 14px;
    color: #0073aa;
    text-decoration: none;
}

.login-to-like:hover {
    text-decoration: underline;
}

.joke-share {
    margin-top: 20px;
}

.joke-share h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.social-share-buttons {
    display: flex;
    gap: 10px;
}

.social-share-buttons a {
    display: inline-block;
    padding: 8px 15px;
    background: #f0f0f0;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.social-share-buttons a:hover {
    background: #e0e0e0;
}

.share-twitter {
    background: #1da1f2 !important;
    color: #fff !important;
}

.share-facebook {
    background: #4267B2 !important;
    color: #fff !important;
}

.share-email {
    background: #738a8d !important;
    color: #fff !important;
}

.joke-comments {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Pagination Styles */
.gallop-gags-pagination {
    margin: 30px 0 10px;
    text-align: center;
    clear: both;
}

.gallop-gags-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: #444;
    text-decoration: none;
    border-radius: 3px;
    background: #fff;
    transition: all 0.3s;
}

.gallop-gags-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.gallop-gags-pagination a.page-numbers:hover {
    background: #f1f1f1;
    color: #0073aa;
}

.gallop-gags-pagination .dots {
    border: none;
    background: transparent;
}
