/**
 * DeepSearch Face Finder - Main Stylesheet
 * Mobile-responsive design with dark theme
 */

/* Base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* Dark Theme (Default) */
body, .dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-theme .container {
    background-color: #1f1f2f;
}

.dark-theme header {
    border-bottom-color: #333;
}

.dark-theme footer {
    border-top-color: #333;
    color: #aaa;
}

.dark-theme input, 
.dark-theme select, 
.dark-theme textarea {
    background-color: #2a2a3a;
    color: #e0e0e0;
    border: 1px solid #444;
}

.dark-theme .btn-secondary {
    background-color: #444;
    color: #e0e0e0;
}

.dark-theme .btn-secondary:hover {
    background-color: #555;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles - Mobile responsive */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.logo i {
    font-size: 24px;
    color: #0088cc;
    margin-right: 10px;
}

.logo h1 {
    font-size: 24px;
    margin: 0;
}

.logo h1 span {
    color: #0088cc;
}

.user-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Hero section - Mobile responsive */
.hero {
    background-color: #0088cc;
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 30px;
}

.hero h2 {
    margin-top: 0;
    font-size: 28px;
}

.hero p {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
}

/* Button styles - Mobile responsive */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: #0088cc;
    color: white;
}

.btn-primary:hover {
    background-color: #006699;
}

.btn-secondary {
    background-color: #ddd;
    color: #333;
}

.btn-secondary:hover {
    background-color: #ccc;
}

.btn-warning {
    background-color: #f0ad4e;
    color: white;
}

.btn-warning:hover {
    background-color: #ec971f;
}

.btn-success {
    background-color: #5cb85c;
    color: white;
}

.btn-success:hover {
    background-color: #4cae4c;
}

/* Form elements - Mobile responsive */
input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    max-width: 100%;
}

/* Footer - Mobile responsive */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #ddd;
    color: #666;
}

/* Styles for blurred premium links */
.blurred-link {
    position: relative;
    color: #666;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px dashed #999;
}

.blurred-link:hover {
    color: #0088cc;
}

.premium-label {
    position: absolute;
    top: -20px;
    right: 0;
    background-color: #ffd700;
    color: #000;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.blur-overlay {
    filter: blur(4px);
    -webkit-filter: blur(4px);
    pointer-events: none;
}

.premium-result {
    position: relative;
}

.premium-result::before {
    content: "Premium Content";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    z-index: 10;
    font-weight: bold;
}

/* Progress bar - smoother animations */
.progress-bar {
    transition: width 0.8s ease-in-out;
}

/* Mobile responsiveness - Results & Scans */
.result-body {
    display: flex;
    flex-direction: column;
}

.result-info {
    margin-top: 15px;
    margin-left: 0;
}

.result-image {
    align-self: center;
}

/* Media Queries for Mobile Responsiveness */
@media (min-width: 768px) {
    .result-body {
        flex-direction: row;
    }
    
    .result-info {
        margin-top: 0;
        margin-left: 15px;
    }
    
    .result-image {
        align-self: flex-start;
    }
    
    input, button, select, textarea {
        width: auto;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 15px;
    }
    
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .user-menu {
        margin-top: 10px;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .result-item {
        padding: 10px;
    }
    
    .result-header {
        flex-direction: column;
        text-align: center;
    }
    
    .result-score {
        margin-top: 5px;
    }
    
    .preview-image {
        max-width: 100%;
    }
}

/* Improved form elements for mobile */
.upload-area {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: #0088cc;
}

.upload-area i {
    font-size: 36px;
    color: #0088cc;
    margin-bottom: 10px;
}

@media (max-width: 480px) {
    .upload-area {
        padding: 15px;
    }
    
    .upload-area i {
        font-size: 28px;
    }
    
    .upload-area p {
        font-size: 14px;
    }
    
    .premium-badge-overlay {
        font-size: 12px;
        padding: 3px 8px;
    }
}
