/* Natal Chart Calculator WordPress Plugin Styles */

.natal-chart-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 5rem;
    overflow: visible;
}

.natal-chart-wrapper * {
    box-sizing: border-box;
}

.ncc-title {
    text-align: center;
    color: #2d3748;
    margin: 1rem 0 2rem;
    font-size: 2rem;
    font-weight: 700;
}

.wrap .ncc-title {
    color: #2d3748;
}

/* Admin page background */
.wrap .natal-chart-wrapper {
    background: #f7fafc;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 1rem;
}

.ncc-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 100%;
}

.ncc-controls {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.ncc-visuals {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

#ncc-paper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

#ncc-paper svg {
    max-width: 100%;
    height: auto !important;
    display: block;
}

.ncc-controls h2 {
    margin-top: 0;
    color: #2d3748;
    font-size: 1.5rem;
}

.ncc-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #718096;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* Map Styling */
#ncc-map {
    height: 250px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: crosshair;
    border: 2px solid #e2e8f0;
}

.ncc-map-help {
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #edf2f7;
    border-radius: 4px;
    border-left: 3px solid #4a5568;
}

.ncc-form-row {
    display: flex;
    gap: 10px;
}

.ncc-form-col {
    flex: 1;
}

.ncc-controls label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
}

.ncc-controls input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.ncc-controls input:focus {
    outline: none;
    border-color: #4a5568;
}

.ncc-controls input:invalid {
    border-color: #e53e3e;
}

.ncc-button {
    width: 100%;
    background: #4a5568;
    color: #fff;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1.5rem;
    transition: background 0.2s ease;
}

.ncc-button:hover:not(:disabled) {
    background: #2d3748;
}

.ncc-button:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.ncc-button-secondary {
    flex: 1;
    background: #edf2f7;
    color: #4a5568;
    padding: 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.ncc-button-secondary:hover {
    background: #e2e8f0;
}

.ncc-button-secondary:nth-child(2) {
    background: #edf2f7;
}

.ncc-button-secondary:nth-child(2):hover {
    background: #e2e8f0;
}

/* Tables Styling */
.ncc-table-container {
    width: 100%;
}

.ncc-table-container h3 {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 1rem;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 0.5rem;
}

.ncc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #4a5568;
}

.ncc-table th,
.ncc-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

.ncc-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
}

.ncc-table tr:hover {
    background: #f7fafc;
}

#ncc-paper {
    width: 100%;
    max-width: 500px;
}

#ncc-meta-info {
    width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.85rem;
    color: #2d3748;
    background: #f7fafc;
    padding: 1rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    white-space: pre-wrap;
    display: none;
    border: 1px solid #e2e8f0;
}

.ncc-error-message {
    background: #fff5f5;
    color: #c53030;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    display: none;
    border: 1px solid #feb2b2;
    width: 100%;
}

.ncc-loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #4a5568;
    border-radius: 50%;
    animation: ncc-spin 0.8s linear infinite;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .natal-chart-wrapper {
        padding: 0.5rem;
    }

    .ncc-title {
        font-size: 1.5rem;
        margin: 0.5rem 0 1rem;
    }

    .ncc-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ncc-controls,
    .ncc-visuals {
        padding: 1.25rem;
    }

    #ncc-map {
        height: 200px;
    }

    .wrap .natal-chart-wrapper {
        padding: 1rem;
    }
}

/* Shortcode specific styles */
.entry-content .natal-chart-wrapper {
    background: #f7fafc;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 2rem 0;
}

.entry-content .ncc-title {
    color: #2d3748;
}