/**
 * Public-facing styles
 */

.tvam-access-forms {
    max-width: 800px;
    margin: 20px 0;
}

.tvam-subscription-form {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.tvam-subscription-form h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.tvam-access-granted {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 3px;
    padding: 15px;
    margin-bottom: 15px;
}

.tvam-access-granted .success-message {
    color: #155724;
    font-size: 16px;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
}

.tvam-access-granted .dashicons {
    color: #28a745;
    margin-right: 8px;
}

.tvam-access-granted .access-info {
    color: #155724;
    margin: 5px 0;
    font-size: 14px;
}

.tvam-username-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.tvam-username-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.tvam-username-form button {
    padding: 8px 16px;
    font-size: 14px;
}

.tvam-form-message {
    margin-top: 10px;
}

.tvam-form-message.success {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 3px;
}

.tvam-form-message.error {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 3px;
}

.tvam-info {
    background: #e8f4f8;
    border: 1px solid #bee5eb;
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
}

.tvam-info h4 {
    margin-top: 0;
    color: #0c5460;
}

.tvam-info ol {
    margin-left: 20px;
    color: #0c5460;
}

.tvam-info em {
    color: #666;
    font-size: 14px;
}

/* Loading state */
.tvam-loading {
    opacity: 0.6;
    pointer-events: none;
}

.tvam-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: tvam-spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 600px) {
    .tvam-username-form {
        flex-direction: column;
    }
    
    .tvam-username-input {
        width: 100%;
    }
    
    .tvam-username-form button {
        width: 100%;
    }
}