/* Author Subscribe - Frontend Styles */

.author-subscribe-widget {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    max-width: 600px;
}

.author-subscribe-header {
    margin-bottom: 20px;
}

.author-subscribe-title {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.author-subscribe-count {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.author-subscribe-form {
    margin: 0;
}

.author-subscribe-field {
    margin-bottom: 15px;
}

.author-subscribe-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.author-subscribe-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.author-subscribe-gdpr {
    margin-bottom: 15px;
}

.author-subscribe-gdpr label {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.author-subscribe-gdpr input[type="checkbox"] {
    margin: 2px 8px 0 0;
    flex-shrink: 0;
}

.author-subscribe-gdpr a {
    color: #007bff;
    text-decoration: none;
}

.author-subscribe-gdpr a:hover {
    text-decoration: underline;
}

.author-subscribe-submit {
    margin-bottom: 15px;
}

.author-subscribe-button {
    width: 100%;
    padding: 14px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.author-subscribe-button:hover {
    background: #0056b3;
}

.author-subscribe-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.author-subscribe-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
    font-size: 14px;
}

.author-subscribe-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.author-subscribe-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.author-subscribe-note {
    margin: 10px 0 0 0;
    color: #999;
    font-size: 12px;
    text-align: center;
}

/* Loading state */
.author-subscribe-widget.loading .author-subscribe-button {
    position: relative;
    color: transparent;
}

.author-subscribe-widget.loading .author-subscribe-button::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: author-subscribe-spin 0.6s linear infinite;
}

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

/* Mobile responsive */
@media (max-width: 600px) {
    .author-subscribe-widget {
        padding: 20px;
        margin: 15px 0;
    }
    
    .author-subscribe-title {
        font-size: 18px;
    }
    
    .author-subscribe-input,
    .author-subscribe-button {
        font-size: 14px;
    }
}
