/**
 * Public styles for The Write Idea plugin.
 *
 * @link       https://thewritepractice.com
 * @since      1.0.0
 */

/* Common styles */
.twi-container {
    font-family: 'Merriweather', serif;
    max-width: 800px;
    margin: 35px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.twi-button {
    display: inline-block;
    background-color: #ff6633;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 17px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.twi-button:hover {
    background-color: #f93;
}

.twi-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.twi-button.secondary {
    background-color: white;
    color: black;
    border: 2px solid black;
    border-radius: 5px;
}

.twi-button.secondary:hover {
    background-color: #f0f0f0;
}

.twi-hidden {
    display: none !important;
}

/* View Toggle Buttons */
.twi-view-toggle {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.twi-toggle-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
    font-family: 'Merriweather', serif;
    font-size: 16px;
}

.twi-toggle-btn:hover {
    color: #ff6633;
}

.twi-toggle-btn.active {
    border-bottom-color: #ff6633;
    color: #ff6633;
}

/* Prompt Generator */
.twi-prompt-view {
    text-align: center;
}

.twi-prompt {
    margin: 15px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border-left: 5px solid #ff6633;
    text-align: left;
    min-height: 80px;
}

.twi-prompt-text {
    font-size: 1em;
    line-height: 1.4;
    color: #333;
}

.twi-prompt-source {
    font-style: italic;
    margin-top: 15px;
    font-size: 0.9em;
    color: #666;
}

.twi-prompt-source a {
    color: #ff6633;
    text-decoration: none;
}

.twi-prompt-source a:hover {
    text-decoration: underline;
}

.twi-controls {
    margin: 25px 0;
}

.twi-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.twi-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.twi-category-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.twi-new-prompt-btn {
    background-color: #ff6633;
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 25px;
    font-size: 17px;
    font-family: 'Merriweather', serif;
    transition: background-color 0.3s ease;
}

.twi-new-prompt-btn:hover {
    background-color: #f93;
}

.twi-like-btn, .twi-share-btn {
    background-color: white;
    color: black;
    border: 2px solid black;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Merriweather', serif;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.twi-like-btn:hover, .twi-share-btn:hover {
    background-color: #f0f0f0;
}

.twi-like-btn.twi-liked {
    color: #ff6633;
    border-color: #ff6633;
}

.twi-like-icon {
    margin-right: 5px;
}

/* Favorites View */
.twi-favorites-view {
    margin-top: 20px;
}

.twi-favorites-header {
    margin-bottom: 30px;
    text-align: center;
}

.twi-favorites-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.twi-favorites-controls {
    margin-bottom: 25px;
    text-align: center;
}

.twi-export-favorites-btn {
    background-color: #ff6633;
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 25px;
    font-size: 17px;
    font-family: 'Merriweather', serif;
    transition: background-color 0.3s ease;
}

.twi-export-favorites-btn:hover {
    background-color: #f93;
}

.twi-favorites-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.twi-favorite-item {
    padding: 25px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border-left: 5px solid #ff6633;
}

.twi-favorite-content {
    font-size: 1.2em;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.twi-favorite-source {
    font-style: italic;
    margin-bottom: 15px;
    color: #666;
}

.twi-favorite-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

.twi-favorite-category, .twi-favorite-subcategory, .twi-favorite-date {
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 15px;
    display: inline-block;
}

.twi-favorite-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.twi-unlike-btn, .twi-share-favorite-btn {
    background-color: white;
    color: black;
    border: 2px solid black;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Merriweather', serif;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.twi-unlike-btn:hover, .twi-share-favorite-btn:hover {
    background-color: #f0f0f0;
}

.twi-favorites-loading {
    padding: 30px;
    text-align: center;
    color: #666;
}

.twi-no-favorites {
    padding: 40px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin: 20px 0;
}

.twi-no-favorites p {
    margin-bottom: 15px;
}

.twi-no-favorites a {
    color: #ff6633;
    text-decoration: none;
    font-weight: bold;
}

.twi-no-favorites a:hover {
    text-decoration: underline;
}

.twi-get-prompts-link {
    display: inline-block;
    background-color: #ff6633;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.twi-get-prompts-link:hover {
    background-color: #f93;
    text-decoration: none !important;
}

/* Timer (keeping for reference) */
.twi-timer {
    text-align: center;
}

.twi-timer-display {
    font-size: 120px;
    line-height: 1.2;
    font-weight: bold;
    margin: 20px 0;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
}

.twi-timer-progress {
    width: 100%;
    height: 10px;
    background-color: #f1f1f1;
    border-radius: 5px;
    margin-bottom: 30px;
    overflow: hidden;
}

.twi-timer-progress-bar {
    height: 100%;
    background-color: #ff6633;
    width: 0;
    transition: width 1s linear;
}

.twi-timer-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.twi-timer-input {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.twi-timer-input input {
    width: 80px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    text-align: center;
    font-family: 'Merriweather', serif;
    font-size: 16px;
}

.twi-timer-message {
    margin-top: 20px;
    font-size: 1.2em;
    color: #333;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .twi-container {
        margin: 20px;
        padding: 20px;
    }
    
    .twi-prompt-text {
        font-size: 1.2em;
    }
    
    .twi-controls-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .twi-buttons, .twi-category-filter {
        justify-content: center;
    }
    
    .twi-favorite-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .twi-timer-display {
        font-size: 80px;
    }
    
    .twi-view-toggle {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .twi-toggle-btn {
        flex: 1;
        text-align: center;
        padding: 10px 5px;
        font-size: 14px;
    }
    
    .twi-new-prompt-btn,
    .twi-export-favorites-btn {
        width: 100%;
    }
    
    .twi-favorite-actions {
        flex-wrap: wrap;
    }
}

/* Add this to your CSS file */
.twi-button i {
    margin-right: 5px;
}

.twi-unlike-button i, 
.twi-share-favorite i {
    font-size: 14px;
}

/* Make sure buttons have enough space for icon + text */
.twi-unlike-button, 
.twi-share-favorite {
    min-width: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
} 