/* Newsletter Demo Page Styles */

.demo-content {
    text-align: center;
    padding: 100px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.demo-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333;
}

.demo-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.demo-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.demo-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

.features {
    margin-top: 60px;
    text-align: left;
}

.features h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e1e5e9;
}

.feature-card h3 {
    color: #007bff;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Dark mode support */
body.dark-mode .demo-content h1 {
    color: #f0f0f0;
}

body.dark-mode .demo-content p {
    color: #ccc;
}

body.dark-mode .features h2 {
    color: #f0f0f0;
}

body.dark-mode .feature-card {
    background: #2a2a2a;
    border-color: #404040;
}

body.dark-mode .feature-card h3 {
    color: #4a9eff;
}

body.dark-mode .feature-card p {
    color: #ccc;
}

/* Newsletter Popup Styles */
.newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.newsletter-popup.show {
    display: flex;
    opacity: 1;
}

body.dark .dropdown {
  background-color: #333;
  border: 1px solid #555;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

body.dark .dropdown a {
  color: #fff;
  border-bottom-color: #555;
}

body.dark .dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.newsletter-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    border: 2px solid #e0e0e0;
}

.newsletter-popup.show .newsletter-content {
    transform: translateY(0);
}

.newsletter-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: #666;
    font-size: 18px;
    font-weight: 300;
}

.newsletter-close:hover {
    background: #f0f0f0;
    color: #333;
    transform: scale(1.1);
}

.newsletter-header {
    text-align: center;
    margin-bottom: 30px;
}

.newsletter-icon {
    margin-bottom: 20px;
}

.newsletter-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
    line-height: 1.2;
}

.newsletter-header p {
    font-size: 16px;
    color: #000000;
    line-height: 1.5;
}

.newsletter-form {
    margin-top: 20px;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.input-group input[type="email"] {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #000000;
}

.input-group input[type="email"]::placeholder {
    color: #666666;
    opacity: 1;
}

.input-group input[type="email"]:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.subscribe-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.subscribe-btn:active {
    transform: translateY(0);
}

.newsletter-message {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    font-weight: 500;
    min-height: 20px;
}

.newsletter-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Newsletter Trigger Button */
.newsletter-trigger {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    z-index: 1000;
}

.newsletter-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.4);
}

.newsletter-trigger:active {
    transform: translateY(-1px);
}

/* Dark Mode Support */
body.dark .newsletter-content {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark .newsletter-header h2 {
    color: #ffffff;
}

body.dark .newsletter-header p {
    color: #b0b0b0;
}

body.dark .input-group input[type="email"] {
    background: #2a2a2a;
    border-color: #404040;
    color: #ffffff;
}

body.dark .input-group input[type="email"]:focus {
    background: #333333;
    border-color: #007bff;
}

body.dark .input-group input[type="email"]::placeholder {
    color: #b0b0b0;
    opacity: 1;
}

body.dark .newsletter-close {
    color: #b0b0b0;
}

body.dark .newsletter-close:hover {
    background: #2a2a2a;
    color: #ffffff;
}

@keyframes newsletterSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.newsletter-popup.show .newsletter-content {
    animation: newsletterSlideIn 0.4s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
    .demo-content h1 {
        font-size: 2rem;
    }
    
    .demo-content {
        padding: 50px 15px;
    }
    
    .demo-buttons {
        gap: 15px;
    }
    
    .demo-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Newsletter responsive styles */
    .newsletter-content {
        padding: 30px 20px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .newsletter-header h2 {
        font-size: 24px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .subscribe-btn {
        width: 100%;
        justify-content: center;
    }
    
    .newsletter-trigger {
        bottom: 20px;
        left: 20px;
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .newsletter-trigger span {
        display: none;
    }
}

@media (max-width: 480px) {
    .newsletter-content {
        padding: 25px 15px;
        margin: 15px;
        width: calc(100% - 30px);
    }
    
    .newsletter-header h2 {
        font-size: 22px;
    }
    
    .input-group input[type="email"] {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .subscribe-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}