:root {
    --primary-color: #007AFF;
    --background-color: #f5f5f7;
    --card-bg: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    padding: 2rem;
    color: #1d1d1f;
}

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

.upload-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    text-align: center;
}

.drop-zone {
    border: 2px dashed #86868b;
    border-radius: 12px;
    padding: 3rem;
    margin: 1rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drop-zone:hover {
    border-color: var(--primary-color);
    background: rgba(0,122,255,0.05);
}

button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

button:hover {
    transform: scale(1.05);
}

.preview-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    overflow-x: auto; /* Enable horizontal scrolling */
    padding: 1rem 0;
    margin-top: 2rem;
}

.device-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    width: 40%;
    height: 400px;
}

.device-card:hover {
    transform: translateY(-5px);
}

.device-frame {
    position: relative;
    background: #0e0e0e;
    border-radius: 10px;
    padding: 20px;
    width: 500px;
    margin: 1rem 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.frame-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 20px;
    background: #000;
    border-radius: 0 0 10px 10px;
}

.preview-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
}

.device-info {
    text-align: center;
    margin-bottom: 1rem;
}

.design-title {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: #1d1d1f;
    font-weight: 600;
    background: linear-gradient(45deg, #007AFF, #00C7FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.download-all {
    margin-top: 2rem;
    display: none;
    text-align: center;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1d1d1f;
    font-weight: 600;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #007AFF, #00C7FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #1d1d1f;
    font-weight: 600;
    font-size: 1.0rem;
    background: linear-gradient(45deg, hsl(240, 100%, 0%), #0586a9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
p{
    text-align: center;
    padding: 15px;
}
/* New SEO Content Styles */
.seo-content {
    max-width: 100%;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.requirement {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.benefits li {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.presets {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    justify-content: center;
}

.presets button {
    background: #f8f9fa;
    color: #1d1d1f;
    border: 1px solid #e0e0e0;
}

.validation-status {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .seo-content {
        max-height: 150px;
        overflow: hidden;
        position: relative;
    }
    
    .seo-content::after {
        content: "Tap to expand requirements";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        background: linear-gradient(transparent, white 70%);
        padding: 1rem;
    }
}