/* Neo Modal Overlay */
#modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    backdrop-filter: blur(2px);
}

/* Neo Modal Container */
.neo-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}

.neo-modal-content {
    background: #FAF4F0;
    border: 4px solid #000;
    border-radius: 12px;
    box-shadow: 0.5rem 0.5rem 0 #000000;
    max-width: 600px;
    width: 100%;
}

.neo-modal-large {
    max-width: 900px;
}

/* Neo Modal Header */
.neo-modal-header {
    background: linear-gradient(135deg, #AE7AFF 0%, #8B62CC 100%);
    padding: 1.5rem 2rem;
    border-bottom: 4px solid #000;
    border-radius: 8px 8px 0 0;
}

.neo-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #000;
}

/* Neo Modal Body */
.neo-modal-body {
    padding: 2rem;
    line-height: 1.6;
    background: #FAF4F0;
}

.neo-modal-body p {
    margin-bottom: 1rem;
}

.neo-modal-body h3 {
    font-weight: 800;
    font-size: 1.25rem;
}

.neo-modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* Neo Modal Footer */
.neo-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 4px solid #000;
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 0.75rem;
    justify-content: start;
}

/* Neo Modal Close Button */
.neo-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #FAF4F0;
    border: 3px solid #000;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    box-shadow: 0.25rem 0.25rem 0 #000;
    transition: all 0.2s;
}

.neo-modal-close:hover {
    background: #E7E8E9;
    transform: translate(0.125rem, 0.125rem);
    box-shadow: 0.125rem 0.125rem 0 #000;
}

/* Neo Buttons */
.neo-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 3px solid #000;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0.25rem 0.25rem 0 #000;
    text-align: center;
    white-space: nowrap;
}

.neo-btn:hover {
    transform: translate(0.125rem, 0.125rem);
    box-shadow: 0.125rem 0.125rem 0 #000;
}

.neo-btn-primary {
    background: #AE7AFF;
    color: #000;
}

.neo-btn-secondary {
    background: #FAF4F0;
    color: #000;
}

/* Neo Modal Book Grid */
.neo-modal-book-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    align-items: start;
}

.neo-modal-book-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0.375rem 0.375rem 0 #000000;
    border: 3px solid #000;
}

.neo-modal-book-info {
    background: #FEFAED;
    border: 3px solid #000;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.neo-modal-book-link {
    color: #8B62CC;
    font-weight: 700;
}

.neo-modal-book-premium-link {
    color: #8B62CC;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .neo-modal-book-grid {
        grid-template-columns: 1fr;
    }
    
    .neo-modal-footer {
        grid-template-columns: 1fr;
    }
}

/* Neo Contact Form Styles */
.neo-contact-form {
    width: 100%;
}

.neo-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .neo-form-row {
        grid-template-columns: 1fr;
    }
}

.neo-form-group {
    margin-bottom: 1rem;
}

.neo-form-label {
    display: block;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.neo-input {
    width: 100%;
    padding: 0.75rem;
    border: 3px solid #000;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #FFF;
    transition: all 0.2s;
}

.neo-input:focus {
    outline: none;
    border-color: #AE7AFF;
    box-shadow: 0 0 0 3px rgba(174, 122, 255, 0.2);
}

.neo-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 3px solid #000;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #FFF;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s;
}

.neo-textarea:focus {
    outline: none;
    border-color: #AE7AFF;
    box-shadow: 0 0 0 3px rgba(174, 122, 255, 0.2);
}

.neo-form-note {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #5F646D;
    font-weight: 600;
}

.neo-form-actions {
    margin-top: 1.5rem;
}

.neo-btn-large {
    height: 3.5rem;
    font-size: 1.125rem;
}

.neo-btn-full {
    width: 100%;
}

/* Alert Styles */
.neo-alert {
    padding: 1rem 1.25rem;
    border: 3px solid #000;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.neo-alert-success {
    background: #EAFBEE;
    border-color: #98E9AB;
}

.neo-alert-error {
    background: #FBEAEA;
    border-color: #E99898;
}

.neo-alert-title {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.neo-alert-text {
    margin: 0;
    font-size: 0.875rem;
    color: #161616;
}

/* Neo Book Ad Widget - Simple Rectangular Style */
.neo-book-ad-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.neo-book-ad-simple:hover {
    opacity: 0.9;
}

.neo-book-ad-simple-image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.neo-book-ad-simple-img {
    width: 140px;
    height: auto;
    border: 3px solid #000;
    border-radius: 6px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.neo-book-ad-simple:hover .neo-book-ad-simple-img {
    transform: translateY(-4px) rotate(2deg);
}

.neo-book-ad-simple-content {
    width: 100%;
}

.neo-book-ad-simple-title {
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.3;
    color: #000;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
}

.neo-book-ad-simple-highlight {
    font-size: 0.8rem;
    color: #5F646D;
    font-weight: 600;
    margin-bottom: 1rem;
    font-style: italic;
}

.neo-book-ad-simple-cta {
    display: inline-block;
    background: #AE7AFF;
    color: #000;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border: 3px solid #000;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 3px 3px 0 #000;
    width: 100%;
}

.neo-book-ad-simple:hover .neo-book-ad-simple-cta {
    background: #98E9AB;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000;
}

/* Neo Comments Styles */
.neo-comment {
    margin-bottom: 1.5rem;
}

.neo-comment-response {
    margin-left: 2rem;
    padding-left: 1.5rem;
    border-left: 4px solid #AE7AFF;
}

.neo-comment-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.neo-comment-author {
    font-weight: 800;
    font-size: 1rem;
    color: #000;
}

.neo-comment-date {
    background: #FEFAED;
    border: 2px solid #000;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0.125rem 0.125rem 0 #000;
}

.neo-comment-reply {
    margin-left: auto;
    background: #E7E8E9;
    border: 2px solid #000;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    color: #000;
    box-shadow: 0.125rem 0.125rem 0 #000;
    transition: all 0.2s;
}

.neo-comment-reply:hover {
    transform: translate(0.0625rem, 0.0625rem);
    box-shadow: 0.0625rem 0.0625rem 0 #000;
}

.neo-comment-body {
    line-height: 1.6;
    margin-bottom: 0.75rem;
    color: #161616;
}

.neo-comment-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.neo-btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Neo Add Comment Styles */
.neo-add-comment {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.neo-comment-meta {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    color: #5F646D;
}

.neo-comment-form {
    background: #FAF4F0;
    border: 3px solid #000;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0.25rem 0.25rem 0 #000;
}

.neo-comment-input-wrapper {
    margin-bottom: 1rem;
}

.neo-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 3px solid #000;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #FFF;
    resize: vertical;
    min-height: 80px;
}

.neo-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px #AE7AFF;
}

.neo-comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.neo-comment-hint {
    font-size: 0.75rem;
    color: #5F646D;
    font-weight: 600;
}

@media (max-width: 768px) {
    .neo-comment-response {
        margin-left: 1rem;
        padding-left: 1rem;
    }
    
    .neo-comment-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .neo-btn-small {
        width: 100%;
    }
}

