/* WordPress Plugin Styles for InstaPost Creator Pro */

.instapost-creator-pro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.instapost-creator-pro .header {
    text-align: center;
    margin-bottom: 30px;
}

.instapost-creator-pro .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.instapost-creator-pro .logo i {
    font-size: 32px;
    color: #E4405F;
}

.instapost-creator-pro .title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.instapost-creator-pro .subtitle {
    color: #666;
    font-size: 16px;
    margin: 10px 0 0 0;
}

.instapost-creator-pro .language-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.instapost-creator-pro .language-toggle button {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.instapost-creator-pro .language-toggle button:hover {
    background: #e9ecef;
}

.instapost-creator-pro .main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .instapost-creator-pro .main-content {
        grid-template-columns: 1fr;
    }
}

.instapost-creator-pro .card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 25px;
    border: 1px solid #e9ecef;
}

.instapost-creator-pro .card-header {
    margin-bottom: 20px;
}

.instapost-creator-pro .card-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instapost-creator-pro .card-description {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.instapost-creator-pro .form-group {
    margin-bottom: 20px;
}

.instapost-creator-pro .form-label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.instapost-creator-pro .form-label.required::after {
    content: ' *';
    color: #dc3545;
}

.instapost-creator-pro .form-input,
.instapost-creator-pro .form-select,
.instapost-creator-pro .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.instapost-creator-pro .form-input:focus,
.instapost-creator-pro .form-select:focus,
.instapost-creator-pro .form-textarea:focus {
    outline: none;
    border-color: #E4405F;
    box-shadow: 0 0 0 2px rgba(228, 64, 95, 0.2);
}

.instapost-creator-pro .form-textarea {
    min-height: 100px;
    resize: vertical;
}

.instapost-creator-pro .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.instapost-creator-pro .btn-primary {
    background: linear-gradient(135deg, #E4405F, #C13584);
    color: white;
}

.instapost-creator-pro .btn-primary:hover {
    background: linear-gradient(135deg, #C13584, #A83279);
    transform: translateY(-1px);
}

.instapost-creator-pro .btn-secondary {
    background: #6c757d;
    color: white;
}

.instapost-creator-pro .btn-secondary:hover {
    background: #5a6268;
}

.instapost-creator-pro .btn-outline {
    background: transparent;
    border: 1px solid #ced4da;
    color: #333;
}

.instapost-creator-pro .btn-outline:hover {
    background: #f8f9fa;
}

.instapost-creator-pro .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.instapost-creator-pro .btn-full {
    width: 100%;
    justify-content: center;
}

.instapost-creator-pro .loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.instapost-creator-pro .results-section {
    margin-top: 30px;
}

.instapost-creator-pro .optimization-score {
    margin-bottom: 20px;
}

.instapost-creator-pro .score-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.instapost-creator-pro .score-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.instapost-creator-pro .score-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc3545, #ffc107, #28a745);
    transition: width 0.5s ease;
}

.instapost-creator-pro .best-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.instapost-creator-pro .generated-image {
    margin-bottom: 20px;
}

.instapost-creator-pro .generated-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.instapost-creator-pro .tabs {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.instapost-creator-pro .tab-buttons {
    display: flex;
    gap: 0;
}

.instapost-creator-pro .tab-button {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.instapost-creator-pro .tab-button.active {
    color: #E4405F;
    border-bottom-color: #E4405F;
}

.instapost-creator-pro .tab-content {
    display: none;
}

.instapost-creator-pro .tab-content.active {
    display: block;
}

.instapost-creator-pro .content-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.instapost-creator-pro .content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.instapost-creator-pro .content-title {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.instapost-creator-pro .copy-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.instapost-creator-pro .copy-btn:hover {
    background: #e9ecef;
}

.instapost-creator-pro .hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.instapost-creator-pro .hashtag {
    background: #e9ecef;
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.instapost-creator-pro .cta-box {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    border: 1px solid #fdcb6e;
    color: #2d3436;
    font-weight: 600;
}

.instapost-creator-pro .history-section {
    margin-top: 30px;
}

.instapost-creator-pro .history-list {
    max-height: 400px;
    overflow-y: auto;
}

.instapost-creator-pro .history-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.instapost-creator-pro .history-item:hover {
    background: #e9ecef;
}

.instapost-creator-pro .history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.instapost-creator-pro .history-type {
    background: #E4405F;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.instapost-creator-pro .history-date {
    color: #666;
    font-size: 12px;
}

.instapost-creator-pro .history-details {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.instapost-creator-pro .dark-mode {
    background: #1a1a1a;
    color: #ffffff;
}

.instapost-creator-pro .dark-mode .card {
    background: #2d2d2d;
    border-color: #404040;
}

.instapost-creator-pro .dark-mode .form-input,
.instapost-creator-pro .dark-mode .form-select,
.instapost-creator-pro .dark-mode .form-textarea {
    background: #2d2d2d;
    border-color: #404040;
    color: #ffffff;
}

.instapost-creator-pro .dark-mode .content-box {
    background: #2d2d2d;
    border-color: #404040;
}

.instapost-creator-pro .dark-mode .history-item {
    background: #2d2d2d;
    border-color: #404040;
}

.instapost-creator-pro .dark-mode .history-item:hover {
    background: #404040;
}

.instapost-creator-pro .dark-mode .title,
.instapost-creator-pro .dark-mode .card-title,
.instapost-creator-pro .dark-mode .form-label,
.instapost-creator-pro .dark-mode .content-title,
.instapost-creator-pro .dark-mode .history-details {
    color: #ffffff;
}

.instapost-creator-pro .dark-mode .subtitle,
.instapost-creator-pro .dark-mode .card-description,
.instapost-creator-pro .dark-mode .best-time,
.instapost-creator-pro .dark-mode .history-date {
    color: #cccccc;
}

.instapost-creator-pro .dark-mode .hashtag {
    background: #404040;
    color: #ffffff;
}

.instapost-creator-pro .dark-mode .tabs {
    border-color: #404040;
}

.instapost-creator-pro .dark-mode .tab-button {
    color: #cccccc;
}

.instapost-creator-pro .dark-mode .tab-button.active {
    color: #E4405F;
}

.instapost-creator-pro .toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 300px;
}

.instapost-creator-pro .toast.success {
    background: #28a745;
}

.instapost-creator-pro .toast.error {
    background: #dc3545;
}

.instapost-creator-pro .toast.warning {
    background: #ffc107;
    color: #333;
}