/* ADD DISCUSSION VIEW - ARCHITECT STYLE */
.msg-add-discussion-view {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
    position: relative;
    z-index: 10;
    animation: slideInRight 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.add-discussion-header {
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.add-back-btn {
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: transform 0.2s;
}

.add-back-btn:hover { transform: translateX(-5px); }

.add-discussion-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.add-discussion-body {
    flex: 1;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.add-desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.5;
}

/* FRYNZY INPUT GRID */
.frynzy-input-container {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #eee;
    border-radius: 16px;
    padding: 15px 25px;
    gap: 15px;
    transition: all 0.3s;
}

.frynzy-input-container:focus-within {
    border-color: #000;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.frynzy-prefix {
    font-weight: 900;
    color: #ff4545;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

#frynzy-num-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1a1a1a;
    outline: none;
}

.frynzy-status-icon {
    font-size: 1.2rem;
    color: #ccc;
    transition: 0.3s;
}

.frynzy-status-icon.success { color: #2ecc71; }
.frynzy-status-icon.loading { animation: spin 1s infinite linear; color: #3498db; }
.frynzy-status-icon.error { color: #e74c3c; }

@keyframes spin { 100% { transform: rotate(360deg); } }

/* SEARCH RESULT CARD */
.frynzy-result-container {
    margin-top: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    animation: as-fade-in 0.3s forwards;
}

.frynzy-profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.frynzy-profile-card img {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.frynzy-profile-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.frynzy-profile-info p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: #ff4545;
    font-weight: 700;
}

.frynzy-save-btn {
    margin-left: auto;
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.frynzy-save-btn:hover { background: #333; transform: translateY(-2px); }

/* DELAY & LIGHT ENGINE */
.frynzy-delay-zone {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.delay-progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.delay-light {
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #ff4545, transparent);
    box-shadow: 0 0 15px #ff4545;
    filter: blur(2px);
    transition: none;
}

.delay-light.running {
    animation: lightRun 5s linear forwards;
}

@keyframes lightRun {
    0% { left: -50%; }
    100% { left: 100%; }
}

.delay-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#delay-status-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #999;
}

.frynzy-msg-btn {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: as-fade-in 0.3s;
}

.frynzy-msg-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* RESPONSIVE MOBILE HANDLER */
@media (max-width: 768px) {
    /* Only apply these overrides when the add discussion view is active */
    .add-discussion-active .msg-sidebar {
        display: none !important;
    }
    
    .add-discussion-active .msg-chat-view {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 9999 !important;
        background: #fff !important;
    }
    
    .add-discussion-active .msg-add-discussion-view {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: 100% !important;
        background: #fff !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 10001 !important;
    }
    
    .add-discussion-active .add-discussion-body {
        padding: 20px !important;
        background: #fff !important;
    }
}
