/**
 * Astro Calculators - Common Styles
 * 
 * Stiluri comune pentru toate calculatoarele
 * Bazate pe design-ul din calculator..txt
 */

/* ==========================================================================
   Container & Wrapper
   ========================================================================== */

.astro-calculator-wrapper {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f5;
    padding: 20px;
    margin: 20px 0;
}

.astro-calc-container {
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   Form Styling
   ========================================================================== */

.astro-calc-form {
    margin-bottom: 20px;
    margin-top: 15px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 2px 2px 2px #888;
    background: linear-gradient(to bottom, rgba(237,242,247,1) 0%, rgba(225,235,244,1) 100%);
}

.astro-calc-header {
    margin-bottom: 20px;
    text-align: center;
}

.astro-calc-title {
    font-weight: bold;
    font-size: 18px;
    font-style: italic;
    color: #444;
    padding-bottom: 10px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.astro-icon {
    font-size: 24px;
}

.astro-calc-subtitle {
    font-size: 13px;
    color: #666;
    margin: 5px 0 0 0;
    font-style: italic;
}

/* ==========================================================================
   Form Groups
   ========================================================================== */

.astro-form-group {
    margin-bottom: 15px;
    clear: both;
    overflow: hidden;
}

.astro-label {
    border: 1px solid #83a2c4;
    border-radius: 3px;
    border-right: 0;
    padding: 5px 15px;
    color: #fff;
    position: relative;
    display: block;
    float: left;
    line-height: 17px;
    background: linear-gradient(to bottom, rgba(100,145,193,1) 0%, rgba(118,167,219,1) 100%);
    width: 130px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

.astro-input {
    padding: 5px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    border-left: 0;
    background: #fff;
    display: block;
    float: left;
    margin-left: -5px;
    color: #444;
    line-height: 17px;
    box-shadow: inset 1px 1px 10px rgba(68,68,68,0.2);
    width: 280px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.astro-input:focus {
    outline: none;
    border-color: #83a2c4;
    box-shadow: inset 1px 1px 10px rgba(131,162,196,0.3);
}

.astro-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23444' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* Coordinates Group */
.astro-coords-group .astro-coords-inputs {
    display: inline-block;
}

.astro-coord-input {
    width: 128px !important;
    display: inline-block;
    margin-right: 5px;
}

.astro-coord-input:last-child {
    margin-right: 0;
}

/* ==========================================================================
   Form Note & Actions
   ========================================================================== */

.astro-form-note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    line-height: 1.5;
    clear: both;
    font-style: italic;
}

.astro-form-actions {
    text-align: center;
    clear: both;
    margin-top: 20px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.astro-btn {
    text-align: center;
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    border: none;
    box-shadow: inset 1px 1px 1px rgba(255,255,255,0.3);
    padding: 10px 25px;
    line-height: 15px;
    text-shadow: 1px 1px 1px rgba(20,20,20,0.5);
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.astro-btn-primary {
    border: 1px solid #810e9c;
    background: linear-gradient(to bottom, rgba(170,64,186,1) 0%, rgba(148,62,173,1) 100%);
}

.astro-btn-primary:hover {
    background: linear-gradient(to bottom, rgba(180,74,196,1) 0%, rgba(158,72,183,1) 100%);
    transform: translateY(-1px);
    box-shadow: inset 1px 1px 1px rgba(255,255,255,0.3), 0 4px 8px rgba(0,0,0,0.2);
}

.astro-btn-primary:active {
    transform: translateY(0);
    box-shadow: inset 1px 1px 1px rgba(255,255,255,0.3);
}

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

.btn-icon {
    margin-right: 5px;
}

.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 5px;
}

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

/* ==========================================================================
   Error Messages
   ========================================================================== */

.astro-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 14px;
}

/* ==========================================================================
   Results
   ========================================================================== */

.astro-results {
    margin-top: 30px;
    animation: fadeIn 0.5s ease-in;
}

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

.astro-result-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.result-title {
    font-size: 20px;
    color: #444;
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: bold;
    font-style: italic;
}

.result-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(237,242,247,1) 0%, rgba(225,235,244,1) 100%);
    border-radius: 8px;
    margin-bottom: 15px;
}

.result-icon {
    font-size: 48px;
    width: 60px;
    text-align: center;
}

.result-info {
    flex: 1;
    padding: 0 20px;
}

.result-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.result-sign {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.result-degree {
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

.result-zodiac-symbol {
    font-size: 64px;
    opacity: 0.8;
    width: 80px;
    text-align: center;
}

/* Result Details */
.result-details {
    padding: 15px;
    background: #f9fafb;
    border-radius: 6px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.detail-value {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 640px) {
    .astro-calculator-wrapper {
        padding: 15px;
    }
    
    .astro-calc-form {
        padding: 15px;
    }
    
    .astro-form-group {
        display: flex;
        flex-direction: column;
    }
    
    .astro-label {
        width: 100%;
        border-radius: 3px 3px 0 0;
        border-right: 1px solid #83a2c4;
        border-bottom: 0;
        float: none;
    }
    
    .astro-input {
        width: 100% !important;
        border-radius: 0 0 3px 3px;
        border-left: 1px solid #ddd;
        border-top: 0;
        float: none;
        margin-left: 0;
    }
    
    .astro-coords-inputs {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .astro-coord-input {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 5px;
    }
    
    .astro-coord-input:last-child {
        margin-bottom: 0;
    }
    
    .result-main {
        flex-direction: column;
        text-align: center;
    }
    
    .result-info {
        padding: 15px 0;
    }
    
    .result-zodiac-symbol {
        margin-top: 10px;
    }
}