/* Custom Styles for TikTok Shop Profit Calculator */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
    overflow-x: hidden;
}

.dark body {
    color: #f9fafb;
    background-color: #111827;
}

/* Container */
.site-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .site-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .site-container {
        padding: 0 2rem;
    }
}

@media (min-width: 1280px) {
    .site-container {
        padding: 0 2.5rem;
    }
}

/* Header */
header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark header {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-bottom: 1px solid #374151;
}

header .site-container {
    padding: 0 1rem;
}

@media (min-width: 640px) {
    header .site-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    header .site-container {
        padding: 0 2rem;
    }
}

/* Logo and Title */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-container img {
    height: 2rem;
    width: auto;
    transition: transform 0.2s ease;
}

@media (min-width: 768px) {
    .logo-container img {
        height: 2.5rem;
    }
}

.logo-container a {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0891b2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dark .logo-container a {
    color: #22d3ee;
}

@media (min-width: 768px) {
    .logo-container a {
        font-size: 1.5rem;
    }
}

.logo-container a:hover {
    color: #0e7490;
}

.dark .logo-container a:hover {
    color: #0891b2;
}

/* Navigation */
nav a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.dark nav a {
    color: #d1d5db;
}

nav a:hover,
nav a.active {
    color: #0891b2;
}

.dark nav a:hover,
.dark nav a.active {
    color: #22d3ee;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #d1d5db;
    cursor: pointer;
}

.dark .btn-secondary {
    background: #374151;
    color: #f9fafb;
    border: 1px solid #4b5563;
}

.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.dark .btn-secondary:hover {
    background: #4b5563;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ecfeff 0%, #f0f9ff 100%);
    padding: 4rem 0;
}

.dark .hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

@media (min-width: 768px) {
    .hero {
        padding: 6rem 0;
    }
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0891b2 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }
}

.hero p {
    font-size: 1.125rem;
    color: #4b5563;
}

.dark .hero p {
    color: #9ca3af;
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1.25rem;
    }
}

/* Cards */
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.dark .card {
    background: #1f2937;
    border: 1px solid #374151;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.dark .card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Calculator */
.calculator {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.dark .calculator {
    background: #1f2937;
    border: 1px solid #374151;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.3);
}

/* Form Elements */
input, select, textarea {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.dark input, .dark select, .dark textarea {
    background: #374151;
    border: 1px solid #4b5563;
    color: #f9fafb;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.dark input:focus, .dark select:focus, .dark textarea:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

/* Sections */
.section {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 5rem 0;
    }
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1f2937;
}

.dark .section h2 {
    color: #f9fafb;
}

@media (min-width: 768px) {
    .section h2 {
        font-size: 2.5rem;
    }
}

.section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section p {
    color: #4b5563;
    margin-bottom: 1rem;
}

.dark .section p {
    color: #9ca3af;
}

/* Footer */
footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 3rem 0;
}

footer h3 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #22d3ee;
}

/* Mobile Menu */
.mobile-menu {
    background: white;
    border-top: 1px solid #e5e7eb;
}

.dark .mobile-menu {
    background: #1f2937;
    border-top: 1px solid #374151;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dark .mobile-menu a {
    color: #f9fafb;
}

.mobile-menu a:hover {
    background: #ecfeff;
    color: #0891b2;
}

.dark .mobile-menu a:hover {
    background: #1e293b;
    color: #22d3ee;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #0891b2 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dark .shadow-custom {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}