/* Newsletter Container */
.newsletter-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    min-height: calc(100vh - 80px);
    gap: 0;
    background: #f9fafb;
}

/* Sidebar */
.sidebar {
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.sidebar-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

/* Navigation Buttons */
.sidebar-section:first-child {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: transparent;
    border: none;
    padding: 0;
}

.btn-back,
.btn-fullscreen {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-back {
    background: #6366f1;
    color: #ffffff;
}

.btn-back:hover {
    background: #4f46e5;
}

.btn-fullscreen {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-fullscreen:hover {
    background: #e5e7eb;
}

.btn-icon {
    font-size: 1.1rem;
}

/* Stats Section */
.stats-section .stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stat-box {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
}

/* Like Button */
.btn-like {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-like:hover {
    border-color: #ef4444;
    background: #fef2f2;
    color: #dc2626;
    transform: scale(1.02);
}

.btn-like.liked {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.btn-like.liked:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.like-icon {
    font-size: 1.2rem;
    animation: heartbeat 0.3s ease;
}

.btn-like.liked .like-icon {
    animation: heartPulse 0.5s ease;
}

@keyframes heartPulse {
    0%,
    100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Feedback Form */
.feedback-form-section {
    background: #ffffff;
    border: 2px solid #e5e7eb;
}

.feedback-description {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
}

.success-alert {
    background: #d1fae5;
    color: #065f46;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-submit {
    padding: 0.875rem 1.25rem;
    background: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

/* Feedback List */
.feedback-list-section {
    background: #ffffff;
    border: 2px solid #e5e7eb;
}

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-item {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.feedback-number {
    background: #6366f1;
    color: #ffffff;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.feedback-date {
    font-size: 0.8rem;
    color: #6b7280;
}

.feedback-text {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.5;
}

.feedback-text strong {
    color: #111827;
    font-weight: 600;
}

.feedback-more {
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
    font-style: italic;
    margin: 0.5rem 0 0 0;
}

/* PDF Viewer */
.pdf-main {
    background: #e5e7eb;
    padding: 2rem;
    overflow: auto;
}

.pdf-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.pdf-viewer {
    width: 100%;
    height: calc(100vh - 120px);
    border: none;
    display: block;
}

.mobile-pdf-message {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
}

.mobile-pdf-message h2 {
    margin-bottom: 1rem;
    color: #111827;
}

.mobile-pdf-message p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-open-pdf {
    display: inline-block;
    background: #6366f1;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.btn-open-pdf:hover {
    background: #4f46e5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .newsletter-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .sidebar-content {
        padding: 1.5rem 1rem;
    }

    .stats-section .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pdf-main {
        padding: 1rem;
    }

    .pdf-wrapper {
        position: relative;
    }

    .mobile-pdf-message {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

@media (max-width: 640px) {
    .sidebar-content {
        padding: 1rem;
        gap: 1rem;
    }

    .sidebar-section {
        padding: 1rem;
    }

    .sidebar-section h3 {
        font-size: 1rem;
    }

    .stats-section .stat-grid {
        grid-template-columns: 1fr;
    }

    .feedback-item {
        padding: 0.75rem;
    }

    .pdf-viewer {
        height: 500px;
    }
}
