/**
 * Boombox for Share Creative - Frontend CSS
 * v0.2.1
 */

/* Collapsable tags */
.bfsc-tags-container {
    position: relative;
}

.bfsc-tags-collapsed {
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.bfsc-tags-expanded {
    max-height: 2000px;
}

.bfsc-tags-toggle {
    display: inline;
    cursor: pointer;
    color: #999;
    font-size: 11px;
    font-weight: 500;
    transition: color 0.2s;
    vertical-align: baseline;
    margin-left: 4px;
}

.bfsc-tags-toggle:hover {
    color: #2271b1;
}

/* Randomize button */
.bfsc-randomize-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s, transform 0.15s;
}

.bfsc-randomize-btn:hover {
    background: #555;
}

.bfsc-randomize-btn:active {
    transform: scale(0.95);
}

.bfsc-randomize-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Ce jour-la widget */
.bfsc-ce-jour-la {
    margin: 15px 0;
}

.bfsc-ce-jour-la .bfsc-year-label {
    font-weight: bold;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.bfsc-ce-jour-la .bfsc-post-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.bfsc-ce-jour-la .bfsc-post-item:last-child {
    border-bottom: none;
}

.bfsc-ce-jour-la .bfsc-post-item a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.bfsc-ce-jour-la .bfsc-post-item a:hover {
    color: #2271b1;
}

/* Custom tag adder */
.bfsc-tag-adder {
    margin: 10px 0;
    display: flex;
    gap: 8px;
}

.bfsc-tag-adder input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.bfsc-tag-adder button {
    padding: 6px 14px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Anonymous messaging */
.bfsc-ama-form {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
}

.bfsc-ama-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.bfsc-ama-form button {
    margin-top: 8px;
    padding: 8px 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Dynamic tags */
.bfsc-dynamic-tags {
    line-height: 2;
}

.bfsc-dynamic-tags.bfsc-dynamic-tags-cloud {
    text-align: center;
}

.bfsc-dynamic-tag {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px;
    background: #f0f0f1;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s, color 0.2s;
}

.bfsc-dynamic-tag:hover {
    background: #333;
    color: #fff;
}

.bfsc-dynamic-tags-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bfsc-dynamic-tags-list li {
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.bfsc-dynamic-tags-list li:last-child {
    border-bottom: none;
}

.bfsc-tag-count {
    color: #999;
    font-size: 0.85em;
}

/* Shortcode tags */
.bfsc-tag-item {
    display: inline-block;
    padding: 3px 10px;
    margin: 2px;
    background: #f5f5f5;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: background 0.2s;
}

.bfsc-tag-item:hover {
    background: #e0e0e0;
}

/* Randomize link style */
.bfsc-randomize-link {
    color: #2271b1;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
}

.bfsc-randomize-link:hover {
    text-decoration: underline;
}

.bfsc-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Tag adder wrapper */
.bfsc-tag-adder-wrapper {
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* Favorites button */
.bfsc-favorite-wrapper {
    margin: 15px 0;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.bfsc-favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.bfsc-favorite-btn:hover {
    background: #e8e8e8;
}

.bfsc-favorite-btn.bfsc-fav-active {
    background: #fff8e1;
    border-color: #f0c040;
    color: #b8860b;
}

.bfsc-fav-icon {
    font-size: 18px;
}

.bfsc-fav-count {
    background: #eee;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 12px;
}

.bfsc-fav-active .bfsc-fav-count {
    background: #f0c040;
    color: #fff;
}

/* Mentions */
.bfsc-mention {
    color: #2271b1;
    font-weight: 500;
    text-decoration: none;
}

.bfsc-mention:hover {
    text-decoration: underline;
}

/* Favorites list (profile) */
.bfsc-favorites-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bfsc-favorite-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.bfsc-favorite-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.bfsc-favorite-date {
    display: block;
    font-size: 12px;
    color: #999;
}

/* Top favorites widget */
.bfsc-top-favorites {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bfsc-top-favorites li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bfsc-fav-badge {
    background: #f0c040;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* Recommend */
.bfsc-recommend-wrapper {
    margin: 15px 0;
}

.bfsc-recommend-trigger {
    padding: 8px 16px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.bfsc-recommend-trigger:hover {
    background: #135e96;
}

.bfsc-recommend-panel {
    margin-top: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
}

.bfsc-recommend-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 5px;
}

.bfsc-recommend-results {
    max-height: 200px;
    overflow-y: auto;
}

.bfsc-recommend-user {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 13px;
}

.bfsc-recommend-user:hover {
    background: #e8e8e8;
}

.bfsc-recommend-message {
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.bfsc-recommend-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.bfsc-recommend-send {
    padding: 6px 16px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.bfsc-recommend-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bfsc-recommend-cancel {
    padding: 6px 12px;
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
}

.bfsc-recommend-feedback {
    margin-top: 8px;
    font-size: 13px;
}

/* AMA section */
.bfsc-ama-section {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

.bfsc-ama-section h4 {
    margin-top: 0;
}

.bfsc-ama-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bfsc-ama-item {
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
}

.bfsc-ama-label {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 4px;
}

.bfsc-ama-date {
    float: right;
    font-size: 12px;
    color: #aaa;
}

.bfsc-ama-reply {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.bfsc-ama-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.bfsc-ama-reply-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 60px;
    margin-bottom: 5px;
}

/* Affiliation */
.bfsc-affiliate-link {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f1;
    border-radius: 3px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: background 0.2s;
}

.bfsc-affiliate-link:hover {
    background: #e0e0e0;
    color: #333;
}
