/**
 * CentrePoint Blog Access Control Styles
 * Version: 1.0.0
 */

/* ===================================
   Restricted Content Container
   =================================== */
.cp-blog-access-restricted {
    position: relative;
}

.cp-blog-access-excerpt {
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ===================================
   Member-Only Notice Box
   =================================== */
.cp-blog-access-notice {
    background: linear-gradient(135deg, #f8f4f4 0%, #f0e8e8 100%);
    border: 2px solid #5c1a1e;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(92, 26, 30, 0.1);
}

.cp-blog-access-icon {
    color: #5c1a1e;
    margin-bottom: 15px;
}

.cp-blog-access-icon svg {
    width: 48px;
    height: 48px;
    opacity: 0.8;
}

.cp-blog-access-message {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ===================================
   Become a Member Button
   =================================== */
.cp-blog-access-button {
    display: inline-block;
    background-color: #5c1a1e;
    color: #fff !important;
    padding: 14px 32px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid #5c1a1e;
    cursor: pointer;
}

.cp-blog-access-button:hover,
.cp-blog-access-button:focus {
    background-color: #7a2327;
    border-color: #7a2327;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 26, 30, 0.3);
}

.cp-blog-access-button:active {
    transform: translateY(0);
}

/* Login/Register buttons layout */
.cp-blog-access-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cp-blog-access-or {
    color: #666;
    font-size: 1em;
}

.cp-blog-access-suffix {
    color: #666;
    font-size: 1em;
}

/* Small button variant for excerpts */
.cp-blog-access-button-small {
    padding: 8px 18px;
    font-size: 0.9em;
}

/* ===================================
   Members Only Badge
   =================================== */
.cp-blog-access-badge {
    display: inline-block;
    background-color: #5c1a1e;
    color: #fff;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* ===================================
   Read More Links (JS-applied)
   =================================== */

/* Normal Read More link */
.cp-normal-read-more {
    color: #5c1a1e !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.cp-normal-read-more:hover,
.cp-normal-read-more:focus {
    color: #7a2327 !important;
    text-decoration: underline !important;
}

/* Member-only Read More link */
.cp-blog-access-read-more {
    color: #5c1a1e !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.cp-blog-access-read-more:hover,
.cp-blog-access-read-more:focus {
    color: #7a2327 !important;
    text-decoration: underline !important;
}

/* Link wrapper */
.cp-read-more-wrapper {
    margin-top: 12px;
}

/* ===================================
   Single Post View
   =================================== */
.single-post .cp-blog-access-notice {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   Archive/Blog Views
   =================================== */
.archive .cp-blog-access-excerpt-cta,
.blog .cp-blog-access-excerpt-cta,
.home .cp-blog-access-excerpt-cta {
    text-align: left;
}

/* ===================================
   Dark Mode Support
   =================================== */
@media (prefers-color-scheme: dark) {
    .cp-blog-access-notice {
        background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
        border-color: #8b3a3e;
    }

    .cp-blog-access-message {
        color: #e0e0e0;
    }

    .cp-blog-access-excerpt {
        color: #d0d0d0;
    }

    .cp-blog-access-button {
        background-color: #8b3a3e;
        border-color: #8b3a3e;
    }

    .cp-blog-access-button:hover {
        background-color: #a54a4e;
        border-color: #a54a4e;
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media screen and (max-width: 768px) {
    .cp-blog-access-notice {
        padding: 20px;
        margin: 20px 0;
    }

    .cp-blog-access-icon svg {
        width: 36px;
        height: 36px;
    }

    .cp-blog-access-message {
        font-size: 1em;
    }

    .cp-blog-access-button {
        padding: 12px 24px;
        font-size: 0.95em;
        width: 100%;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 480px) {
    .cp-blog-access-notice {
        padding: 15px;
        border-radius: 8px;
    }

    .cp-blog-access-badge {
        font-size: 0.7em;
        padding: 3px 8px;
    }
}

/* ===================================
   Animation
   =================================== */
@keyframes cp-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cp-blog-access-notice {
    animation: cp-fade-in 0.4s ease-out;
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .cp-blog-access-notice {
        border: 1px solid #333;
        background: #f5f5f5 !important;
        box-shadow: none;
    }

    .cp-blog-access-button {
        background: #333 !important;
        color: #fff !important;
    }
}
