/**
 * Email Dropdown Styles
 * Modern, clean dropdown menu for email options
 */

.email-dropdown-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.email-dropdown-trigger {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.email-dropdown-trigger:hover {
    opacity: 0.8;
}

.email-dropdown-trigger i.dropdown-icon {
    font-size: 0.7em;
    margin-left: 4px;
    transition: transform 0.3s;
}

.email-dropdown-trigger:hover i.dropdown-icon {
    transform: translateY(2px);
}

.email-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.424);
    min-width: 280px;
    max-width: calc(100vw - 40px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.email-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.email-dropdown-header {
    padding: 14px 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: none;
    text-align: center;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.25);
}

.email-dropdown-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #363636;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
}

.email-dropdown-option:last-child {
    border-bottom: none;
}

.email-dropdown-option:hover {
    background: #f8f9fa;
    transform: translateX(4px);
}

.email-dropdown-option:active {
    background: #e9ecef;
}

.option-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.option-icon.gmail {
    background: #ea4335;
    color: white;
}

.option-icon.outlook {
    background: #0078D4;
    color: white;
}

.option-icon.desktop {
    background: #0078D4;
    color: white;
}

.option-icon.copy {
    background: #6c757d;
    color: white;
}

.option-content {
    flex: 1;
}

.option-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #212529;
    display: block;
    margin-bottom: 2px;
}

.option-description {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
}

/* Copy notification */
.email-copy-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #28a745;
    color: white;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10000;
}

.email-copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.email-copy-notification i {
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .email-dropdown {
        min-width: 260px;
        left: auto;
        right: 0;
    }

    .email-copy-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: calc(100% - 40px);
    }
}

/* Animation for dropdown arrow */
.email-dropdown.show+.email-dropdown-trigger i.dropdown-icon {
    transform: rotate(180deg);
}