/* Website Screenshot Generator - Professional Styles */
.screenshot-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.screenshot-wrapper {
    max-width: 1300px;
    margin: 0 auto;
}

.screenshot-title {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.screenshot-icon {
    font-size: 2.8rem;
    display: inline-block;
    animation: cameraClick 1.5s infinite;
}

@keyframes cameraClick {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.95); }
}

.screenshot-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
}

.screenshot-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Input Area */
.screenshot-input-group {
    margin-bottom: 2rem;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.screenshot-label {
    font-weight: 600;
    color: var(--text);
}

.input-actions-mini {
    display: flex;
    gap: 0.5rem;
}

.mini-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
}

.mini-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.url-input-wrapper {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.screenshot-input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font-size: 1rem;
    font-family: monospace;
}

.screenshot-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.capture-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.capture-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99,102,241,0.3);
}

.api-notice {
    background: var(--bg);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Viewport Selection */
.viewport-selection {
    margin-bottom: 2rem;
}

.viewport-selection h3, .capture-mode h3, .advanced-options h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.viewport-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.viewport-radio {
    flex: 1;
    cursor: pointer;
}

.viewport-radio input {
    display: none;
}

.viewport-card-inline {
    background: var(--bg);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.2s;
    cursor: pointer;
}

.viewport-radio input:checked + .viewport-card-inline {
    border-color: var(--primary);
    background: rgba(99,102,241,0.1);
}

.viewport-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.3rem;
}

.viewport-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.viewport-size {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* Capture Mode */
.capture-mode {
    margin-bottom: 2rem;
}

.mode-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.mode-radio {
    flex: 1;
    cursor: pointer;
}

.mode-radio input {
    display: none;
}

.mode-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.2s;
}

.mode-radio input:checked + .mode-card {
    border-color: var(--primary);
    background: rgba(99,102,241,0.1);
}

.mode-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.3rem;
}

.mode-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.mode-desc {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* Advanced Options */
.advanced-options {
    margin-bottom: 2rem;
}

.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.option-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.85rem;
}

.option-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 3rem;
    background: var(--bg);
    border-radius: 20px;
    margin-bottom: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

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

.loading-sub {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Screenshot Result */
.screenshot-result {
    margin-bottom: 2rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.result-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.result-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.primary-small-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-small-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(99,102,241,0.3);
}

.small-outline-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
}

.small-outline-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.screenshot-preview-container {
    background: var(--bg);
    border-radius: 20px;
    padding: 1rem;
    border: 1px solid var(--border);
    overflow-x: auto;
}

.screenshot-preview {
    display: flex;
    justify-content: center;
    min-height: 400px;
    background: var(--surface);
    border-radius: 12px;
    overflow: auto;
}

.screenshot-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.skeleton-loader {
    width: 100%;
    height: 400px;
    background: linear-gradient(90deg, var(--bg) 25%, var(--surface) 50%, var(--bg) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 12px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.screenshot-info {
    margin-top: 1rem;
    padding: 0.8rem;
    background: var(--bg);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}

/* Error Message */
.error-message {
    background: rgba(239,68,68,0.1);
    border: 1px solid #ef4444;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #ef4444;
    margin-bottom: 2rem;
}

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

/* Info Cards */
.screenshot-info-cards {
    margin-bottom: 2rem;
}

.screenshot-info-cards h3 {
    margin-bottom: 1rem;
}

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

.info-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border);
}

.info-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.info-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--primary);
}

.info-card p {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* SEO */
.screenshot-seo {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 16px;
}

.feature-list {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
}

.feature-list li {
    margin-bottom: 0.3rem;
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .screenshot-container {
        padding: 0 1rem;
    }
    
    .screenshot-title {
        font-size: 2rem;
    }
    
    .screenshot-card {
        padding: 1.2rem;
    }
    
    .url-input-wrapper {
        flex-direction: column;
    }
    
    .capture-btn {
        width: 100%;
    }
    
    .viewport-options, .mode-options {
        flex-direction: column;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-actions {
        width: 100%;
    }
    
    .primary-small-btn, .small-outline-btn {
        flex: 1;
        text-align: center;
    }
}