/* Frontend Styles for Golden SEO Test */

.gst-auditor-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero Section */
.gst-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.gst-hero-title {
    font-size: 48px;
    font-weight: bold;
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gst-hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* Input Section */
.gst-input-section {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.gst-input-wrapper {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.gst-url-input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.gst-url-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.gst-analyze-btn {
    padding: 16px 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.gst-analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.gst-input-hint {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* Loading Animation */
.gst-loading {
    background: white;
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.gst-radar {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    position: relative;
}

.radar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid #3b82f6;
    border-radius: 50%;
    opacity: 0;
    animation: radarPulse 2s ease-out infinite;
}

.radar-circle:nth-child(1) {
    width: 60px;
    height: 60px;
    animation-delay: 0s;
}

.radar-circle:nth-child(2) {
    width: 120px;
    height: 120px;
    animation-delay: 0.5s;
}

.radar-circle:nth-child(3) {
    width: 180px;
    height: 180px;
    animation-delay: 1s;
}

.radar-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 90px;
    background: linear-gradient(to bottom, #3b82f6, transparent);
    transform-origin: bottom center;
    animation: radarScan 2s linear infinite;
}

@keyframes radarPulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes radarScan {
    0% {
        transform: translate(-50%, -100%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -100%) rotate(360deg);
    }
}

.gst-loading-title {
    font-size: 28px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 12px;
}

.gst-loading-text {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 40px;
}

.gst-loading-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.loading-step {
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.loading-step.active {
    opacity: 1;
    border-color: #3b82f6;
    background: #dbeafe;
    transform: scale(1.05);
}

.loading-step.completed {
    opacity: 1;
    border-color: #10b981;
    background: #d1fae5;
}

.step-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.step-text {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* Results Section */
.gst-results {
    animation: fadeIn 0.5s ease;
}

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

.gst-report-header {
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
}

.report-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 16px;
}

.report-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 14px;
    opacity: 0.9;
}

/* Score Cards */
.gst-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.score-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.score-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.score-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.score-title {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.score-value {
    font-size: 48px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 16px;
}

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

.score-fill {
    height: 100%;
    background: #10b981;
    border-radius: 4px;
    transition: width 1s ease, background 0.3s ease;
}

/* Charts Section */
.gst-charts-section {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.chart-title {
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 24px;
    text-align: center;
}

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

/* Details Grid */
.gst-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.detail-section {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 22px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-icon {
    font-size: 28px;
}

.section-content {
    color: #374151;
    line-height: 1.8;
}

.detail-item {
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 12px;
    border-right: 4px solid #3b82f6;
}

.issues-list,
.strengths-list,
.suggestions-list {
    margin-top: 20px;
}

.issues-list h4,
.strengths-list h4,
.suggestions-list h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.issue-item,
.strength-item,
.suggestion-item {
    padding: 10px;
    background: #fef3c7;
    border-right: 4px solid #f59e0b;
    border-radius: 6px;
    margin-bottom: 8px;
}

.strength-item {
    background: #d1fae5;
    border-right-color: #10b981;
}

/* Keywords */
.keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.keyword-tag {
    padding: 10px 20px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    color: #1e40af;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Recommendations */
.gst-recommendations {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.recommendations-list {
    display: grid;
    gap: 20px;
}

.recommendation-card {
    padding: 24px;
    border-radius: 12px;
    border-right: 6px solid;
    transition: all 0.3s ease;
}

.recommendation-card.priority-high {
    background: #fee2e2;
    border-right-color: #ef4444;
}

.recommendation-card.priority-medium {
    background: #fef3c7;
    border-right-color: #f59e0b;
}

.recommendation-card.priority-low {
    background: #d1fae5;
    border-right-color: #10b981;
}

.recommendation-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rec-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rec-priority {
    font-size: 24px;
}

.rec-title {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
}

.rec-description {
    color: #374151;
    line-height: 1.6;
}

/* Action Buttons */
.gst-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.btn-pdf {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-copy {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-email {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Modal */
.gst-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 32px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #1f2937;
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 24px;
    text-align: center;
}

.modal-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.modal-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.modal-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Notification */
.gst-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 32px;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gst-notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Website Overview Styles */
.gst-website-overview {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.website-overview-container {
    width: 100%;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.overview-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 12px;
}

.overview-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3b82f6;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border-right: 3px solid #3b82f6;
}

.info-label {
    font-weight: 600;
    color: #4b5563;
    font-size: 14px;
}

.info-value {
    font-weight: 500;
    color: #1f2937;
    font-size: 14px;
    direction: ltr;
    text-align: left;
}

.social-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-right: 3px solid #e5e7eb;
    transition: all 0.3s ease;
}

.social-item.active {
    border-right-color: #10b981;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.social-icon {
    font-size: 20px;
}

.social-name {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
}

/* Technical Checks Styles */
.gst-technical-checks {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.technical-checks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .technical-checks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tech-check-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.tech-check-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tech-check-card.check-pass {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
}

.tech-check-card.check-fail {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
}

.check-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.check-content {
    flex: 1;
}

.check-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.check-message {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.tech-summary {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.tech-summary p {
    margin: 0;
    font-size: 16px;
    color: #374151;
}

.tech-summary strong {
    color: #1f2937;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gst-hero-title {
        font-size: 32px;
    }
    
    .gst-input-wrapper {
        flex-direction: column;
    }
    
    .gst-analyze-btn {
        justify-content: center;
    }
    
    .gst-scores-grid,
    .gst-details-grid,
    .technical-checks-grid {
        grid-template-columns: 1fr;
    }
    
    .gst-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .report-meta {
        flex-direction: column;
        gap: 10px;
    }
}
