/* ============================================
   Pretpot Pushdown Menu Widget Styles
   ============================================ */

/* Core Structure */
.pretpot-pushdown-menu {
    position: relative;
}

.pretpot-pushdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    position: relative;
    z-index: 100;
}

/* Logo Styles */
.pretpot-pushdown-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.pretpot-pushdown-logo-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.pretpot-pushdown-logo-text {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

/* Toggle Button - Icon Visibility Enforced */
.pretpot-pushdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.pretpot-pushdown-toggle-icon {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    position: relative;
    visibility: visible !important;
    opacity: 1 !important;
}

.pretpot-pushdown-toggle-icon span {
    display: block !important;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    position: absolute;
    left: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: visible !important;
    opacity: 1 !important;
}

.pretpot-pushdown-toggle-icon span:nth-child(1) {
    top: 4px;
}

.pretpot-pushdown-toggle-icon span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.pretpot-pushdown-toggle-icon span:nth-child(3) {
    bottom: 4px;
}

/* Active State (X) */
.pretpot-pushdown-toggle.active .pretpot-pushdown-toggle-icon span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.pretpot-pushdown-toggle.active .pretpot-pushdown-toggle-icon span:nth-child(2) {
    opacity: 0 !important;
    visibility: hidden !important;
}

.pretpot-pushdown-toggle.active .pretpot-pushdown-toggle-icon span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Custom Icon Support */
.pretpot-pushdown-toggle i,
.pretpot-pushdown-toggle svg {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Menu Panel */
.pretpot-pushdown-panel {
    position: relative;
    width: var(--menu-width, 100%);
    background-color: var(--panel-bg, #ffffff);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.pretpot-pushdown-panel.open {
    max-height: 1000px;
    opacity: 1;
}

/* Menu Content Container */
.pretpot-pushdown-content {
    padding: var(--content-padding, 30px);
}

/* Menu Items */
.pretpot-pushdown-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--item-gap, 0);
    text-align: var(--items-align, left);
}

.pretpot-pushdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: var(--item-padding-y, 12px) var(--item-padding-x, 0);
    text-decoration: none;
    transition: all 0.3s ease;
    justify-content: var(--items-align, flex-start);
}

.pretpot-pushdown-item:hover {
    opacity: 0.7;
}

.pretpot-pushdown-item-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: var(--icon-size, 44px);
    height: var(--icon-size, 44px);
    border-radius: var(--icon-radius, 12px);
    background-color: var(--icon-bg, #f5f5f5);
    color: var(--icon-color, #333333);
    font-size: var(--icon-font-size, 20px);
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

.pretpot-pushdown-item-icon img,
.pretpot-pushdown-item-icon svg {
    width: var(--icon-image-size, 24px);
    height: var(--icon-image-size, 24px);
    object-fit: contain;
}

.pretpot-pushdown-item-text {
    display: flex;
    flex-direction: column;
    text-align: var(--text-align, left);
}

.pretpot-pushdown-item-title {
    font-size: var(--title-size, 17px);
    font-weight: var(--title-weight, 500);
    color: var(--title-color, #222222);
    line-height: 1.3;
    margin: 0;
}

.pretpot-pushdown-item-subtitle {
    font-size: var(--subtitle-size, 14px);
    font-weight: var(--subtitle-weight, 400);
    color: var(--subtitle-color, #666666);
    line-height: 1.4;
    margin: var(--subtitle-margin, 2px) 0 0;
}

/* Divider */
.pretpot-pushdown-divider {
    height: 1px;
    background-color: var(--divider-color, #e0e0e0);
    margin: var(--divider-margin, 20px) 0;
    border: none;
}

/* Social Icons */
.pretpot-pushdown-social {
    display: flex;
    gap: var(--social-gap, 15px);
    justify-content: var(--social-align, center);
    margin: var(--social-margin, 0);
}

.pretpot-pushdown-social-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: var(--social-icon-size, 40px);
    height: var(--social-icon-size, 40px);
    border-radius: var(--social-radius, 50%);
    background-color: var(--social-bg, #f5f5f5);
    color: var(--social-color, #666666);
    font-size: var(--social-font-size, 18px);
    text-decoration: none;
    transition: all 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.pretpot-pushdown-social-icon:hover {
    background-color: var(--social-hover-bg, #333333);
    color: var(--social-hover-color, #ffffff);
}

/* Buttons */
.pretpot-pushdown-buttons {
    display: flex;
    gap: var(--button-gap, 12px);
    justify-content: var(--button-align, center);
    flex-wrap: wrap;
}

.pretpot-pushdown-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--button-padding-y, 14px) var(--button-padding-x, 24px);
    font-size: var(--button-font-size, 15px);
    font-weight: var(--button-weight, 500);
    text-decoration: none;
    border-radius: var(--button-radius, 25px);
    border: var(--button-border-width, 0) solid var(--button-border-color, transparent);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pretpot-pushdown-button-primary {
    background-color: var(--button-primary-bg, #222222);
    color: var(--button-primary-color, #ffffff);
}

.pretpot-pushdown-button-primary:hover {
    background-color: var(--button-primary-hover-bg, #444444);
    color: var(--button-primary-hover-color, #ffffff);
}

.pretpot-pushdown-button-secondary {
    background-color: var(--button-secondary-bg, transparent);
    color: var(--button-secondary-color, #222222);
    border-color: var(--button-secondary-border, #222222);
}

.pretpot-pushdown-button-secondary:hover {
    background-color: var(--button-secondary-hover-bg, #222222);
    color: var(--button-secondary-hover-color, #ffffff);
}

/* Overlay - disabled for pushdown behavior */
.pretpot-pushdown-overlay {
    display: none;
}

/* Alignment Variants */
.pretpot-pushdown-items-align-left { --items-align: flex-start; --text-align: left; }
.pretpot-pushdown-items-align-center { --items-align: center; --text-align: center; }
.pretpot-pushdown-items-align-right { --items-align: flex-end; --text-align: right; }

/* Responsive */
@media (max-width: 767px) {
    .pretpot-pushdown-panel {
        width: var(--menu-width-mobile, 100%) !important;
    }
    
    .pretpot-pushdown-content {
        padding: var(--content-padding-mobile, 20px);
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .pretpot-pushdown-panel {
        width: var(--menu-width-tablet, 100%) !important;
    }
}