/**
 * Haven of Hope - Public Styles
 * Brand Colors:
 * - Primary Accent: #4A7C6F (Teal/Sage Green)
 * - Secondary Accent: #5D9B8C (Lighter Teal)
 * - Hover State: #3D6A5E (Darker Teal)
 * - Text: #333333 (Charcoal)
 * - Light Background: #F5F5F5
 * - Warm Neutral: #F9F7F4 (Cream)
 */

:root {
    --hoh-primary: #4A7C6F;
    --hoh-primary-light: #5D9B8C;
    --hoh-primary-dark: #3D6A5E;
    --hoh-text: #333333;
    --hoh-text-light: #666666;
    --hoh-bg-light: #F5F5F5;
    --hoh-bg-cream: #F9F7F4;
    --hoh-white: #FFFFFF;
    --hoh-border: #E0E0E0;
    --hoh-error: #D32F2F;
    --hoh-success: #2E7D32;
    --hoh-warning: #F57C00;
    --hoh-font: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

/* Base Styles */
.hoh-container {
    font-family: var(--hoh-font);
    color: var(--hoh-text);
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Buttons */
.hoh-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid var(--hoh-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--hoh-font);
}

.hoh-btn-primary {
    background: var(--hoh-primary);
    color: var(--hoh-white);
}

.hoh-btn-primary:hover {
    background: var(--hoh-primary-dark);
    border-color: var(--hoh-primary-dark);
    color: var(--hoh-white);
}

.hoh-btn-secondary {
    background: transparent;
    color: var(--hoh-primary);
}

.hoh-btn-secondary:hover {
    background: var(--hoh-primary);
    color: var(--hoh-white);
}

.hoh-btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.hoh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Forms */
.hoh-form {
    background: var(--hoh-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    margin: 0 auto;
}

.hoh-form-row {
    margin-bottom: 20px;
}

.hoh-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--hoh-text);
}

.hoh-form-row input[type="text"],
.hoh-form-row input[type="email"],
.hoh-form-row input[type="password"],
.hoh-form-row input[type="number"],
.hoh-form-row input[type="tel"],
.hoh-form-row input[type="date"],
.hoh-form-row select,
.hoh-form-row textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid var(--hoh-border);
    border-radius: 6px;
    font-family: var(--hoh-font);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.hoh-form-row input:focus,
.hoh-form-row select:focus,
.hoh-form-row textarea:focus {
    outline: none;
    border-color: var(--hoh-primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 111, 0.15);
}

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

.hoh-form-row .hoh-input-error {
    border-color: var(--hoh-error);
}

.hoh-form-row .hoh-error-message {
    color: var(--hoh-error);
    font-size: 14px;
    margin-top: 4px;
}

.hoh-form-row .hoh-required {
    color: var(--hoh-error);
}

.hoh-form-actions {
    margin-top: 24px;
}

.hoh-form-actions .hoh-btn {
    width: 100%;
}

.hoh-form-footer {
    margin-top: 20px;
    text-align: center;
    color: var(--hoh-text-light);
}

.hoh-form-footer a {
    color: var(--hoh-primary);
}

/* Checkbox and Radio */
.hoh-checkbox-group,
.hoh-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hoh-checkbox-item,
.hoh-radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hoh-checkbox-item input,
.hoh-radio-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--hoh-primary);
}

/* Signature Pad */
.hoh-signature-wrapper {
    border: 1px solid var(--hoh-border);
    border-radius: 6px;
    background: var(--hoh-white);
}

.hoh-signature-pad {
    width: 100%;
    height: 200px;
    touch-action: none;
}

.hoh-signature-actions {
    padding: 10px;
    border-top: 1px solid var(--hoh-border);
    text-align: right;
}

/* Messages */
.hoh-message {
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.hoh-message-success {
    background: #E8F5E9;
    color: var(--hoh-success);
    border: 1px solid #C8E6C9;
}

.hoh-message-error {
    background: #FFEBEE;
    color: var(--hoh-error);
    border: 1px solid #FFCDD2;
}

.hoh-message-warning {
    background: #FFF3E0;
    color: var(--hoh-warning);
    border: 1px solid #FFE0B2;
}

.hoh-message-info {
    background: var(--hoh-bg-light);
    color: var(--hoh-text);
    border: 1px solid var(--hoh-border);
}

/* Packages Display */
.hoh-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.hoh-package-card {
    background: var(--hoh-white);
    border: 1px solid var(--hoh-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hoh-package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.hoh-package-card.hoh-featured {
    border-color: var(--hoh-primary);
    border-width: 2px;
}

.hoh-package-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--hoh-text);
    margin-bottom: 10px;
}

.hoh-package-description {
    color: var(--hoh-text-light);
    margin-bottom: 20px;
}

.hoh-package-price {
    margin-bottom: 20px;
}

.hoh-price-amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--hoh-primary);
}

.hoh-price-period {
    color: var(--hoh-text-light);
    font-size: 16px;
}

.hoh-package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
}

.hoh-package-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--hoh-bg-light);
}

.hoh-package-features li:before {
    content: "✓";
    color: var(--hoh-primary);
    font-weight: bold;
    margin-right: 10px;
}

.hoh-package-cta {
    margin-top: auto;
}

.hoh-billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.hoh-billing-toggle label {
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.hoh-billing-toggle input[type="radio"] {
    display: none;
}

.hoh-billing-toggle input[type="radio"]:checked + label {
    background: var(--hoh-primary);
    color: var(--hoh-white);
}

.hoh-savings-badge {
    background: var(--hoh-success);
    color: var(--hoh-white);
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

/* Content Browser */
.hoh-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.hoh-content-card {
    background: var(--hoh-white);
    border: 1px solid var(--hoh-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hoh-content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.hoh-content-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--hoh-bg-light);
}

.hoh-content-body {
    padding: 20px;
}

.hoh-content-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--hoh-text);
}

.hoh-content-title a {
    color: inherit;
    text-decoration: none;
}

.hoh-content-title a:hover {
    color: var(--hoh-primary);
}

.hoh-content-excerpt {
    color: var(--hoh-text-light);
    font-size: 15px;
    margin-bottom: 16px;
}

.hoh-content-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--hoh-text-light);
}

.hoh-content-type {
    background: var(--hoh-bg-light);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Single Content */
.hoh-content-single {
    background: var(--hoh-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.hoh-content-single h1 {
    color: var(--hoh-text);
    margin-bottom: 20px;
}

.hoh-content-single .hoh-video-container {
    margin: 24px 0;
}

.hoh-content-single video {
    width: 100%;
    border-radius: 8px;
}

/* User Profile */
.hoh-profile {
    max-width: 600px;
    margin: 0 auto;
}

.hoh-profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.hoh-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.hoh-profile-name {
    font-size: 24px;
    font-weight: 600;
}

.hoh-profile-section {
    background: var(--hoh-white);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.hoh-profile-section h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hoh-border);
}

/* Subscriptions */
.hoh-subscriptions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hoh-subscription-card {
    background: var(--hoh-white);
    border: 1px solid var(--hoh-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.hoh-subscription-info h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.hoh-subscription-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.hoh-status-active {
    background: #E8F5E9;
    color: var(--hoh-success);
}

.hoh-status-suspended {
    background: #FFF3E0;
    color: var(--hoh-warning);
}

.hoh-status-cancelled {
    background: #FFEBEE;
    color: var(--hoh-error);
}

.hoh-subscription-meta {
    color: var(--hoh-text-light);
    font-size: 14px;
    margin-top: 8px;
}

/* User Submissions */
.hoh-submissions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hoh-submission-item {
    background: var(--hoh-white);
    border: 1px solid var(--hoh-border);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hoh-submission-item:hover {
    border-color: var(--hoh-primary-light);
}

.hoh-submission-info {
    flex: 1;
}

.hoh-submission-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.hoh-submission-date {
    color: var(--hoh-text-light);
    font-size: 14px;
}

/* Login Required / Access Denied */
.hoh-login-required,
.hoh-access-denied,
.hoh-restricted-message {
    background: var(--hoh-bg-cream);
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    margin: 20px 0;
}

.hoh-login-required h3,
.hoh-access-denied h3 {
    color: var(--hoh-text);
    margin-bottom: 12px;
}

/* Checkout Success/Cancel */
.hoh-checkout-success,
.hoh-checkout-cancel {
    text-align: center;
    padding: 60px 40px;
    background: var(--hoh-white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    margin: 0 auto;
}

.hoh-success-icon {
    width: 80px;
    height: 80px;
    background: var(--hoh-success);
    color: var(--hoh-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
}

/* Loading Spinner */
.hoh-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--hoh-border);
    border-radius: 50%;
    border-top-color: var(--hoh-primary);
    animation: hoh-spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hoh-form {
        padding: 20px;
    }

    .hoh-packages-grid {
        grid-template-columns: 1fr;
    }

    .hoh-content-grid {
        grid-template-columns: 1fr;
    }

    .hoh-subscription-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .hoh-content-single {
        padding: 24px;
    }
}
