/* Responsive styles for HelferLink */

/* Hamburger menu styling - hidden by default on desktop */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 101;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile responsive styles */
@media (max-width: 991px) {
    .header-inner {
        flex-wrap: wrap;
    }
    
    .hamburger {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #264653;
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 100;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 10px 0;
        font-size: 1.2rem;
        width: 100%;
    }
    
    /* When menu is open, change hamburger to X */
    .hamburger.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}

/* Further refinements for smaller screens */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 2rem 1rem;
    }
    
    .hero-content {
        margin-left: 0;
    }
    
    .hero-image {
        order: -1;
        max-width: 80%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Small screens */
@media (max-width: 480px) {
    .header-inner {
        padding: 0.5rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
}

/* Designer page mobile responsive styles */
@media (max-width: 768px) {
    .designer-container {
        max-width: none;
        width: 100%;
        margin: 1rem 0;
        padding: 1rem;
        border-radius: 0;
    }
    
    .designer-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    #questionTypes {
        min-width: 100% !important;
        max-width: 100%;
    }
    
    .question-type {
        min-width: 100%;
        padding: 12px 16px;
    }
    
    #questionnaireArea {
        width: 100%;
    }
    
    .designer-header-actions {
        text-align: center;
    }
    
    .back-button {
        width: 100%;
        justify-content: center;
    }
    
    #eventHeader {
        padding: 1rem;
    }
    
    .input-group {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 1rem;
        display: block !important;
    }
    
    .input-group input,
    .input-group textarea {
        font-size: 16px !important;
        min-height: 44px;
        padding: 12px 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .input-group label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .time-group {
        width: 100% !important;
    }
    
    .question-card {
        margin: 0.5rem 0;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .card-controls {
        width: 100%;
        justify-content: center;
    }
    
    .designer-buttons-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
        padding: 1rem 0;
    }
    
    .designer-buttons-container .save-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}