/**
 * assets/css/components.css
 * Стилі компонентів: navbar, footer, банер, floating phone, типографіка статей
 */

/* ===== NAVBAR: кабінет-кнопка ===== */
.nav-cabinet-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1ae6d5;
    color: #fff !important;
    padding: 7px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s;
}
.nav-cabinet-btn:hover { background: #14c9ba; }

/* ===== NAVBAR: user dropdown ===== */
.nav-user-block { position: relative; display: inline-block; }

.nav-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f97316;
    color: #fff;
    padding: 7px 14px 7px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    outline: none;
    transition: background .2s;
    white-space: nowrap;
    user-select: none;
}
.nav-user-trigger:hover { background: #ea6c0a; }
.nav-user-trigger .chevron { font-size: 11px; margin-left: 1px; transition: transform .2s; }
.nav-user-block.open .nav-user-trigger .chevron { transform: rotate(180deg); }

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
    padding: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(.97);
    transform-origin: top right;
    transition: opacity .18s, transform .18s;
    z-index: 9999;
}
.nav-user-block.open .nav-user-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.nav-user-dropdown .dd-info {
    padding: 7px 10px 9px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 4px;
    font-size: 12px;
    color: #aaa;
}
.nav-user-dropdown .dd-info strong {
    display: block;
    font-size: 13px;
    color: #1a1a2e;
    margin-bottom: 1px;
}
.nav-user-dropdown a.dd-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: background .15s;
}
.nav-user-dropdown a.dd-link:hover { background: #f0fffe; color: #14c9ba; }
.nav-user-dropdown a.dd-link.dd-logout {
    color: #e53e3e;
    margin-top: 2px;
    border-top: 1px solid #f5f5f5;
}
.nav-user-dropdown a.dd-link.dd-logout:hover { background: #fff5f5; color: #c53030; }

/* ===== BOTTOM STICKY BANNER ===== */
.top-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1ae6d5;
    text-align: center;
    padding: 10px 20px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    box-shadow: 0 -2px 5px rgba(0,0,0,.2);
}

/* ===== FLOATING PHONE BUTTON ===== */
.phone-float {
    position: fixed;
    bottom: 160px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    z-index: 9998;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    animation: phonePulse 1.5s infinite;
}
.phone-float i { animation: phoneRing 1.5s infinite; }

@keyframes phonePulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(37,211,102,.4); }
    50%       { box-shadow: 0 4px 24px rgba(37,211,102,.9), 0 0 0 10px rgba(37,211,102,.15); }
}
@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    10%       { transform: rotate(-15deg); }
    20%       { transform: rotate(15deg); }
    30%       { transform: rotate(-10deg); }
    40%       { transform: rotate(10deg); }
    50%       { transform: rotate(0deg); }
}

/* ===== ARTICLE TYPOGRAPHY (awasome-feature section) ===== */
.awasome-feature .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    color: #222;
}

.awasome-feature h1,
.awasome-feature h2,
.awasome-feature h3,
.awasome-feature h4,
.awasome-feature h5,
.awasome-feature h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    line-height: 1.3;
    margin: 20px 0 10px;
    text-transform: none;
}

.awasome-feature p {
    text-align: justify;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 10px 0;
    color: #222;
}

.awasome-feature ul {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 20px;
    margin-left: 0;
    font-family: 'Roboto', sans-serif;
}

.awasome-feature ul li {
    font-size: 18px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
    text-align: left;
}
