/**
 * Template-specific styles with Orange (#f38221) & Purple (#181743) Theme
 * For Frags2Fishes Aquarist Spotlight Plugin
 */

/* Template-specific layout styles */
.as-no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #f8f9fa;
    color: #8c8f94;
    border-radius: 8px;
    border: 2px dashed #e0e0e0;
    transition: all 0.3s ease;
}

.as-no-image-placeholder:hover {
    border-color: #f38221;
    background: rgba(243, 130, 33, 0.05);
    color: #f38221;
}

.as-no-image-placeholder i {
    font-size: 48px;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.as-no-image-placeholder:hover i {
    transform: scale(1.1);
}

.as-current-image {
    margin-bottom: 16px;
}

.as-current-image p {
    font-weight: 600;
    color: #181743;
    margin-bottom: 8px;
}

.as-current-image-preview {
    max-width: 200px;
    border: 2px solid #f38221;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(243, 130, 33, 0.2);
    transition: transform 0.3s ease;
}

.as-current-image-preview:hover {
    transform: scale(1.02);
}

.as-current-image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.as-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.as-signage-body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
    cursor: none;
}

/* Updated Button Styles */
.as-btn-primary {
    background: linear-gradient(135deg, #181743 0%, #2d1b69 100%);
    color: white;
    border: 2px solid transparent;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.as-btn-primary:hover {
    background: linear-gradient(135deg, #2d1b69 0%, #181743 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 23, 67, 0.3);
    text-decoration: none;
}

.as-btn-secondary {
    background: white;
    color: #181743;
    border: 2px solid #181743;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.as-btn-secondary:hover {
    background: #181743;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 23, 67, 0.2);
    text-decoration: none;
}

.as-btn-accent {
    background: linear-gradient(135deg, #f38221 0%, #ff9642 100%);
    color: white;
    border: 2px solid transparent;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.as-btn-accent:hover {
    background: linear-gradient(135deg, #ff9642 0%, #f38221 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 130, 33, 0.3);
    text-decoration: none;
}

.as-btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.as-btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Form Styles */
.as-form-group input:focus,
.as-form-group textarea:focus {
    outline: none;
    border-color: #f38221;
    box-shadow: 0 0 0 4px rgba(243, 130, 33, 0.1);
    transform: translateY(-2px);
}

.as-form-group.focused label {
    color: #f38221;
}

.as-form-group.has-error input,
.as-form-group.has-error textarea {
    border-color: #d63638;
    box-shadow: 0 0 0 4px rgba(214, 54, 56, 0.1);
}

.as-form-group.has-success input,
.as-form-group.has-success textarea {
    border-color: #f38221;
    box-shadow: 0 0 0 4px rgba(243, 130, 33, 0.1);
}

/* Submit Buttons */
.as-submit-btn {
    background: linear-gradient(135deg, #f38221 0%, #ff9642 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.as-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.as-submit-btn:hover::before {
    left: 100%;
}

.as-submit-btn:hover {
    background: linear-gradient(135deg, #ff9642 0%, #f38221 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(243, 130, 33, 0.4);
}

.as-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* File Upload Styles */
.as-file-upload-label:hover {
    border-color: #f38221;
    background: rgba(243, 130, 33, 0.05);
    transform: translateY(-2px);
}

.as-file-upload-label:hover i,
.as-file-upload-label:hover span {
    color: #f38221;
}

.as-file-selected {
    background: rgba(243, 130, 33, 0.1) !important;
    border-color: #f38221 !important;
}

.as-styled-form-container .as-file-selected {
    background: rgba(243, 130, 33, 0.2) !important;
    border-color: rgba(243, 130, 33, 0.6) !important;
}

/* Vote Button Styles */
.as-vote-display i {
    color: #f38221;
}

/* Status Styles */
.as-status-publish {
    background: rgba(243, 130, 33, 0.1);
    color: #d2680f;
    border: 1px solid #f38221;
}

.as-status-pending {
    background: rgba(24, 23, 67, 0.1);
    color: #181743;
    border: 1px solid #181743;
}

.as-status-draft {
    background: #f0f0f1;
    color: #646970;
    border: 1px solid #8c8f94;
}

/* Badge Styles */
.as-badge-popular {
    background: linear-gradient(135deg, #f38221 0%, #ff9642 100%);
    color: white;
}

.as-badge-featured {
    background: linear-gradient(135deg, #181743 0%, #2d1b69 100%);
    color: white;
}

.as-badge-new {
    background: linear-gradient(135deg, #f38221 0%, #ff9642 100%);
    color: white;
}

/* Message Styles */
.as-success-message,
.as-form-success {
    background: linear-gradient(135deg, #f38221 0%, #ff9642 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(243, 130, 33, 0.3);
}

.as-info-message {
    background: linear-gradient(135deg, #181743 0%, #2d1b69 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(24, 23, 67, 0.3);
}

.as-error-message {
    background: linear-gradient(135deg, #d63638 0%, #b32d2e 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(214, 54, 56, 0.3);
}

/* Empty State */
.as-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #646970;
}

.as-empty-state i {
    font-size: 64px;
    color: #f38221;
    margin-bottom: 20px;
    display: block;
}

.as-empty-state h3 {
    font-size: 24px;
    color: #181743;
    margin: 0 0 12px 0;
}

.as-empty-state p {
    font-size: 16px;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Submission Grid */
.as-submission-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.as-submission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #f38221;
}

.as-submission-card.published {
    border-color: #f38221;
}

.as-submission-card.pending {
    border-color: #181743;
    opacity: 0.8;
}

.as-submit-btn-home {
    background: linear-gradient(135deg, #f38221 0%, #ff9642 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 30px rgba(243, 130, 33, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
}

.as-submit-btn-home:hover {
    background: linear-gradient(135deg, #ff9642 0%, #f38221 100%);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(243, 130, 33, 0.4);
    text-decoration: none;
}

/* Link Styles */
.as-submit-link {
    color: #181743;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.as-submit-link:hover {
    color: #f38221;
    border-bottom-color: #f38221;
    text-decoration: none;
}

/* Checkbox and Radio Styles */
.as-checkbox-group input[type="checkbox"],
.as-radio-group input[type="radio"] {
    accent-color: #f38221;
}

/* Word Counter */
.as-word-counter.over-limit {
    color: #d63638;
    font-weight: 600;
}

.as-styled-form-container .as-word-counter.over-limit {
    color: #ffcccc;
}

/* Tooltip Styles */
.as-tooltip:hover::after,
.as-tooltip::after {
    background: #181743;
    color: white;
}

/* Progress Indicators */
.as-progress-bar {
    background: linear-gradient(135deg, #181743 0%, #f38221 100%);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .as-form-row {
        flex-direction: column;
    }
    
    .as-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .as-carousel-header h2 {
        font-size: 28px;
    }
    
    .as-submission-card {
        margin-bottom: 16px;
    }
    
    .as-btn-primary,
    .as-btn-secondary,
    .as-btn-accent {
        justify-content: center;
        width: 100%;
    }
    
    .as-empty-state {
        padding: 40px 16px;
    }
    
    .as-empty-state i {
        font-size: 48px;
    }
    
    .as-empty-state h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .as-form-actions {
        gap: 8px;
    }
    
    .as-submit-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .as-current-image-preview {
        max-width: 150px;
    }
    
    .as-no-image-placeholder {
        height: 150px;
    }
    
    .as-no-image-placeholder i {
        font-size: 36px;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .as-btn-primary,
    .as-btn-accent {
        border: 2px solid currentColor;
    }
    
    .as-submission-card {
        border: 2px solid #181743;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .as-submission-card:hover,
    .as-btn:hover,
    .as-submit-btn:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .as-submit-btn,
    .as-vote-btn,
    .as-form-actions {
        display: none;
    }
    
    .as-submission-card {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .as-success-message,
    .as-error-message,
    .as-info-message {
        background: none;
        color: #000;
        border: 1px solid #000;
    }
}