/**
 * Astrology Reports Pro - Frontend Styles
 */

/* General Styles */
.astro-reports-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Form Styles */
.astro-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.astro-form .form-group {
    margin-bottom: 20px;
}

.astro-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.astro-form input[type="text"],
.astro-form input[type="date"],
.astro-form input[type="time"],
.astro-form input[type="number"],
.astro-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.astro-form input:focus,
.astro-form select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.astro-form .btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.astro-form .btn-primary {
    background: #6366f1;
    color: white;
}

.astro-form .btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Chart Result Container */
.chart-result {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.chart-result h2 {
    color: #6366f1;
    margin-bottom: 20px;
    font-size: 28px;
}

.chart-result h3 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 22px;
    border-bottom: 2px solid #6366f1;
    padding-bottom: 10px;
}

.chart-result h4 {
    color: #555;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

/* Chart Summary */
.chart-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

/* Chart Canvas */
.chart-canvas-wrapper {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

#natal-chart-canvas {
    max-width: 100%;
    height: auto;
}

/* Planets Table */
.planets-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.planets-table thead {
    background: #6366f1;
    color: white;
}

.planets-table th,
.planets-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.planets-table tr:hover {
    background: #f9fafb;
}

/* Interpretations */
.interpretations {
    margin-top: 30px;
}

.interpretation-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9fafb;
    border-left: 4px solid #6366f1;
    border-radius: 5px;
}

.interpretation-section p {
    line-height: 1.8;
    color: #555;
}

/* Element Bars */
.element-bars {
    margin-top: 15px;
}

.element-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.element-label {
    width: 100px;
    font-weight: 600;
    color: #333;
}

.bar {
    height: 20px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.element-count {
    margin-left: 10px;
    font-weight: 600;
    color: #6366f1;
}

/* Aspects List */
.aspects-list {
    list-style: none;
    padding: 0;
}

.aspects-list li {
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    line-height: 1.6;
}

/* Compatibility Score */
.compatibility-score {
    text-align: center;
    padding: 40px;
    border-radius: 10px;
    color: white;
    margin-bottom: 30px;
}

.score-value {
    font-size: 72px;
    font-weight: bold;
    margin-bottom: 10px;
}

.score-label {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Compatibility Areas */
.compatibility-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.area-item {
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #6366f1;
}

.area-item strong {
    display: block;
    color: #6366f1;
    margin-bottom: 8px;
    font-size: 16px;
}

/* Chart Actions */
.chart-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.chart-actions .btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.chart-actions .btn-primary {
    background: #6366f1;
    color: white;
}

.chart-actions .btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.chart-actions .btn-secondary {
    background: #fff;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.chart-actions .btn-secondary:hover {
    background: #6366f1;
    color: white;
}

/* Error Message */
.error {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #c33;
    margin: 20px 0;
}

/* Success Message */
.success {
    background: #efe;
    color: #3c3;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #3c3;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .astro-form {
        padding: 20px;
    }
    
    .chart-result {
        padding: 20px;
    }
    
    .chart-result h2 {
        font-size: 24px;
    }
    
    .compatibility-score {
        padding: 30px 20px;
    }
    
    .score-value {
        font-size: 56px;
    }
    
    .chart-actions {
        flex-direction: column;
    }
    
    .chart-actions .btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .astro-form,
    .chart-actions {
        display: none;
    }
    
    .chart-result {
        box-shadow: none;
    }
}
