/* Component Styles */

/* Steps Progress */
.steps-container {
    margin-bottom: 20px;
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    padding: 0 20px;
}

.steps::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 35px;
    right: 35px;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    border: 3px solid white;
}

.step.active .step-circle {
    background: #4285f4;
    color: white;
}

.step.completed .step-circle {
    background: #34a853;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
    white-space: nowrap;
}

.step.active .step-label {
    color: #4285f4;
    font-weight: 500;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8e8e8;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.card-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Premium Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 100%;
    margin: 8px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-success {
    background: linear-gradient(135deg, #34a853, #2d9444);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 168, 83, 0.3);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 168, 83, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    color: white;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e0e0e0;
}

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

.btn-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.btn-warning:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-icon {
    font-size: 18px;
}

/* Instructions */
.instructions {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.instructions h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    padding-left: 8px;
}

/* Progress Components */
.progress-container {
    margin: 16px 0;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4285f4, #34a853);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

.progress-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #e9ecef;
}

.progress-step.active {
    background: #e3f2fd;
    border-left-color: #4285f4;
}

.progress-step.completed {
    background: #e8f5e8;
    border-left-color: #34a853;
}

.progress-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.progress-step.active .progress-icon {
    animation: spin 2s linear infinite;
}

.progress-text-small {
    font-size: 14px;
    color: #333;
}

/* Results */
.results-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8e8e8;
    text-align: center;
}

.results-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.results-main {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #333;
}

.category-highlight {
    font-weight: 800;
    color: #4285f4;
    font-size: 1.2em;
}

.percentage-highlight {
    font-weight: 800;
    color: #34a853;
    font-size: 1.2em;
}

.results-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.detail-card {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.detail-value {
    font-size: 20px;
    font-weight: 700;
    color: #4285f4;
    margin-bottom: 4px;
}

.detail-label {
    font-size: 12px;
    color: #666;
}

/* Share Buttons */
.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.share-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.screenshot {
    background: #6c5ce7;
    color: white;
}

.share-btn.copy {
    background: #6c757d;
    color: white;
}

/* Real AdSense Ad Grid - Premium Design */
.real-ad-grid {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 1px solid #e0e0e0;
}

.ad-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.ad-row:last-child {
    margin-bottom: 0;
}

.real-ad-slot {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    min-height: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.real-ad-slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.real-ad-slot .adsbygoogle {
    width: 100% !important;
    height: 200px !important;
    display: block !important;
}

.ad-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 12px;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.real-ad-slot.loaded .ad-loading-indicator {
    opacity: 0;
    pointer-events: none;
}

/* Ad Loading Progress */
.ad-loading-progress {
    margin: 20px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.loading-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
    font-weight: 500;
}

.loading-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.loading-fill {
    height: 100%;
    background: linear-gradient(90deg, #4285f4, #34a853);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.analysis-start-container {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
}

/* Mobile responsive for ad grid */
@media (max-width: 768px) {
    .ad-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .real-ad-slot {
        min-height: 150px;
    }
}

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Premium Analysis Progress */
.premium-progress-container {
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    margin: 20px 0;
}

.analysis-header {
    text-align: center;
    margin-bottom: 30px;
}

.analysis-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    font-weight: 400;
}

.main-progress-display {
    text-align: center;
    margin-bottom: 30px;
}

.progress-percentage {
    font-size: 48px;
    font-weight: 700;
    color: #4285f4;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(66, 133, 244, 0.2);
}

.progress-status {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.premium-progress-bar {
    margin: 30px 0;
    position: relative;
}

.progress-track {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill-premium {
    height: 100%;
    background: linear-gradient(90deg, #4285f4, #34a853);
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    position: relative;
}

.progress-glow {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #4285f4 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-fill-premium[style*="width: 0"] ~ .progress-glow {
    opacity: 0;
}

.progress-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 6px;
}

.marker {
    width: 2px;
    height: 8px;
    background: #ccc;
    border-radius: 1px;
    position: relative;
}

.marker::after {
    content: attr(data-percent);
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #666;
}

.analysis-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.analysis-step {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    position: relative;
}

.analysis-step.active {
    border-color: #4285f4;
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9ff 100%);
    transform: scale(1.02);
}

.analysis-step.completed {
    border-color: #34a853;
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
}

.analysis-step .step-icon {
    font-size: 24px;
    margin-bottom: 12px;
    display: block;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.step-detail {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.step-status {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    font-weight: 500;
}

.analysis-step.active .step-status {
    color: #4285f4;
}

.analysis-step.completed .step-status {
    color: #34a853;
}

.analysis-complete-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .content-card {
        padding: 20px;
    }
    
    .steps {
        padding: 0 10px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .results-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analysis-steps-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-percentage {
        font-size: 36px;
    }
    
    .premium-progress-container {
        padding: 20px;
    }
}