/* Clone Detector - Main Styles */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

/* Header */
.site-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    color: var(--primary-color);
}

.main-nav a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Scan Section */
.scan-section {
    margin: 3rem 0;
}

.form-container {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.form-container h2 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-description {
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.help-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-primary:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Scan Status */
.scan-status {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 2rem auto;
}

.scan-status h3 {
    margin-bottom: 1rem;
}

/* Project URL Box */
.project-url-box {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.project-url-box p {
    margin-bottom: 0.5rem;
}

.url-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.url-text {
    flex: 1;
    background-color: #ffffff;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #dbeafe;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #1e40af;
    word-break: break-all;
    display: block;
    min-height: 36px;
    line-height: 1.5;
}

.copy-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 36px;
}

.copy-btn:hover {
    background-color: #2563eb;
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-icon {
    font-size: 1.2rem;
}

.url-hint {
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.url-hint small {
    color: #64748b;
}

.api-example {
    background-color: #1e293b;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.api-text {
    color: #22c55e;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    word-break: break-all;
    display: block;
    line-height: 1.5;
}

.status-info p {
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background-color: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background-color: var(--secondary-color);
    transition: width 0.5s ease;
}

.status-message {
    color: var(--text-light);
    font-style: italic;
}

/* Features Section */
.features {
    padding: 3rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.features-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto 3rem;
}

/* Feature Category */
.feature-category {
    margin-bottom: 4rem;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.feature-category.highlight {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #bae6fd;
}

.category-title {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.category-desc {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-card h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.125rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Coming Soon Section */
.coming-soon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    position: relative;
}

.coming-soon::before {
    content: "🚀 COMING SOON";
    position: absolute;
    top: 1rem;
    right: 2rem;
    background-color: #f59e0b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
}

.coming-soon-group {
    margin-bottom: 3rem;
}

.coming-soon-group:last-child {
    margin-bottom: 0;
}

.coming-soon-subtitle {
    font-size: 1.25rem;
    color: #92400e;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.coming-soon-card {
    background-color: #fffbeb;
    border: 1px solid #fcd34d;
    opacity: 0.9;
}

.coming-soon-card:hover {
    opacity: 1;
    border-color: #f59e0b;
}

/* Footer */
.site-footer {
    background-color: var(--text-dark);
    color: #e5e7eb;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        display: flex;
        gap: 1rem;
    }

    .main-nav a {
        margin-left: 0;
    }
}
