/* Personal Horoscope - Public Styles
 * 
 * All elements have CSS classes for full theme control.
 * Override these classes in your theme CSS to customize appearance.
 */

/* ============================================
   CONTAINER
   ============================================ */
.ph-form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
}

/* ============================================
   TYPOGRAPHY - All text elements have classes
   ============================================ */

/* Form title */
.ph-form-title {
    text-align: center;
    margin-bottom: 20px;
}

/* Description text (above form) */
.ph-form-description {
    text-align: center;
    margin-bottom: 25px;
}

/* Footer text (below form) */
.ph-form-footer {
    text-align: center;
    margin-top: 20px;
}

/* ============================================
   FORM GROUPS
   ============================================ */
.ph-form-group {
    margin-bottom: 20px;
}

/* Form labels */
.ph-form-label {
    display: block;
    margin-bottom: 8px;
}

/* Required asterisk */
.ph-required {
    color: inherit;
}

/* Optional text */
.ph-optional {
    font-size: 0.9em;
}

/* ============================================
   INPUTS & TEXTAREA
   ============================================ */
.ph-form-input,
.ph-form-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: 1em;
    background: transparent;
}

.ph-form-input:focus,
.ph-form-textarea:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.ph-form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   BUTTONS - WordPress block button structure
   ============================================ */
.ph-form-submit {
    margin-top: 25px;
}

.ph-form-submit .wp-block-button {
    width: 100%;
}

.ph-form-submit .wp-block-button__link,
.ph-submit-button {
    width: 100%;
    display: block;
    text-align: center;
    cursor: pointer;
}

.ph-submit-button:disabled {
    cursor: not-allowed;
}

/* ============================================
   SUBSCRIPTION FORM - Price Box
   ============================================ */
.ph-price-box {
    text-align: center;
    margin-bottom: 25px;
}

.ph-price-amount {
    font-size: 2.5em;
    font-weight: 700;
}

.ph-price-currency {
    font-size: 1.5em;
    font-weight: 700;
}

.ph-price-period {
    font-size: 1.1em;
}

/* ============================================
   SUBSCRIPTION FORM - Features List
   ============================================ */
.ph-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.ph-feature-item {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.ph-feature-item:before {
    content: '\2713';
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ============================================
   SUBSCRIPTION FORM - Secure Note
   ============================================ */
.ph-secure-note {
    text-align: center;
    font-size: 0.9em;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.ph-lock-icon {
    font-size: 1em;
}

.ph-secure-text {
    /* Inherits color from parent */
}

/* ============================================
   MESSAGES
   ============================================ */
.ph-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 4px;
    display: none;
    text-align: center;
}

.ph-message.ph-message-success {
    display: block;
    background: rgba(0, 128, 0, 0.1);
    border: 1px solid rgba(0, 128, 0, 0.3);
}

.ph-message.ph-message-error {
    display: block;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.ph-message.ph-message-loading {
    display: block;
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
}

/* Legacy class support */
.ph-message.success { display: block; background: rgba(0, 128, 0, 0.1); border: 1px solid rgba(0, 128, 0, 0.3); }
.ph-message.error { display: block; background: rgba(220, 53, 69, 0.1); border: 1px solid rgba(220, 53, 69, 0.3); }
.ph-message.loading { display: block; background: rgba(0, 123, 255, 0.1); border: 1px solid rgba(0, 123, 255, 0.3); }

/* ============================================
   DREAM INTERPRETATION RESULTS
   ============================================ */
.ph-dream-result {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid currentColor;
}

.ph-result-title {
    text-align: center;
    margin-bottom: 25px;
}

.ph-result-section {
    margin-bottom: 20px;
}

.ph-result-section-title {
    margin-bottom: 10px;
}

.ph-result-text {
    line-height: 1.6;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.ph-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: ph-spin 1s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
    .ph-form-container {
        padding: 20px;
        margin: 0 15px;
    }
    
    .ph-price-amount {
        font-size: 2em;
    }
    
    .ph-price-currency {
        font-size: 1.2em;
    }
}

/* ============================================
   DAILY HOROSCOPES - [daily_horoscopes] shortcode
   ============================================ */
.ph-daily-horoscopes {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
}

.ph-daily-title {
    text-align: center;
    margin-bottom: 10px;
}

.ph-daily-date {
    text-align: center;
    margin-bottom: 30px;
}

/* Grid layout */
.ph-zodiac-grid {
    display: grid;
    gap: 20px;
}

.ph-zodiac-grid.ph-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ph-zodiac-grid.ph-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ph-zodiac-grid.ph-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Zodiac card */
.ph-zodiac-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    position: relative;
}

.ph-zodiac-card-inner {
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.ph-zodiac-header {
    text-align: center;
    margin-bottom: 15px;
}

.ph-zodiac-symbol {
    font-size: 2em;
    display: block;
    margin-bottom: 5px;
}

.ph-zodiac-name {
    font-size: 1.3em;
    margin: 0 0 5px 0;
}

.ph-zodiac-dates {
    font-size: 0.85em;
}

.ph-zodiac-content {
    flex: 1;
}

.ph-zodiac-content p {
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .ph-zodiac-grid.ph-columns-3,
    .ph-zodiac-grid.ph-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ph-zodiac-grid.ph-columns-2,
    .ph-zodiac-grid.ph-columns-3,
    .ph-zodiac-grid.ph-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .ph-zodiac-card-inner {
        min-height: auto;
    }
}
