/* Detector-specific styles */
.detector-hero {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.detector-header {
    max-width: 600px;
    margin: 0 auto;
}

.detector-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.detector-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.detector-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.detector-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.detector-container {
    padding: 3rem 0;
    background: #f9fafb;
}

.detector-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.input-section {
    display: flex;
    justify-content: center;
}

.input-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    width: 100%;
    max-width: 500px;
}

.input-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1f2937;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.result-section {
    display: flex;
    justify-content: center;
}

.result-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    max-width: 500px;
    width: 100%;
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fantasy-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.fantasy-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.fantasy-mood {
    display: inline-block;
    background: #f0f4ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.fantasy-content {
    margin-bottom: 2rem;
}

.fantasy-scenario {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid #ec4899;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    font-style: italic;
}

.fantasy-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    margin-bottom: 1rem;
}

.detail-item strong {
    display: block;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-tag {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.fantasy-suggestions {
    background: #f0fdf4;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 3px solid #10b981;
}

.fantasy-suggestions h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestion-item {
    background: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    border-left: 3px solid #10b981;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fantasy-history {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.fantasy-history h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
    text-align: center;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.fantasy-card {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem;
    border-left: 4px solid #ec4899;
    transition: transform 0.2s ease;
}

.fantasy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.fantasy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.fantasy-card-mood {
    background: #f0f4ff;
    color: #3730a3;
    padding: 0.25rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: capitalize;
}

.fantasy-card-preview {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fantasy-card-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.fantasy-card-keyword {
    background: #fef3c7;
    color: #92400e;
    padding: 0.125rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.625rem;
    font-weight: 500;
}

.fantasy-card-time {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: right;
}

.no-fantasies {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 2rem;
    grid-column: 1 / -1;
}

.related-tools {
    padding: 3rem 0;
    background: white;
}

.related-tools .section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.related-tools .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-tools .tool-card {
    padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .detector-title {
        font-size: 2rem;
    }
    
    .detector-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .detector-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .input-card {
        padding: 1.5rem;
    }
    
    .result-card {
        padding: 1.5rem;
    }
    
    .action-buttons {
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .detector-hero {
        padding: 2rem 0;
    }
    
    .detector-title {
        font-size: 1.75rem;
    }
    
    .input-card {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .result-card {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .fantasy-scenario {
        padding: 1rem;
        font-size: 0.875rem;
    }
    
    .history-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scale-in {
    animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
