/**
 * Whisky Membership - Public Styles
 */

/* ===== Member Actions ===== */
.whm-member-actions {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

.whm-action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.whm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    font-family: sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whm-btn:hover {
    background: #1a1a1a;
    color: #f2ceb1;
}

.whm-btn--active {
    background: #c5a059;
    border-color: #c5a059;
    color: #1a1a1a;
}

.whm-btn--active:hover {
    background: #b08d4b;
    border-color: #b08d4b;
}

.whm-btn--primary {
    background: #1a1a1a;
    color: #f2ceb1;
}

.whm-btn--primary:hover {
    background: #c5a059;
    color: #1a1a1a;
    border-color: #c5a059;
}

.whm-btn__icon {
    font-size: 16px;
}

/* ===== Login Prompt ===== */
.whm-login-prompt {
    background: #f6f7f7;
    padding: 20px;
    border-radius: 4px;
}

.whm-login-prompt p {
    margin: 0 0 10px;
    font-family: Georgia, serif;
}

.whm-login-prompt ul {
    margin: 0;
    padding-left: 20px;
}

.whm-login-prompt li {
    margin: 5px 0;
    font-family: Georgia, serif;
    font-size: 14px;
    color: #646970;
}

/* ===== Modals ===== */
.whm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whm-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.8);
}

.whm-modal__content {
    position: relative;
    background: #f2ceb1;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.whm-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #1a1a1a;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.whm-modal__close:hover {
    opacity: 1;
}

.whm-modal h3 {
    font-family: Georgia, serif;
    font-size: 24px;
    margin: 0 0 25px;
    color: #1a1a1a;
}

.whm-modal__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(26, 26, 26, 0.2);
}

/* ===== Flavour Sliders ===== */
.whm-flavour-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

@media (max-width: 600px) {
    .whm-flavour-comparison {
        grid-template-columns: 1fr;
    }
}

.whm-flavour-chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.whm-flavour-sliders {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whm-slider-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.whm-slider-group label {
    display: flex;
    justify-content: space-between;
    font-family: sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.whm-slider-value {
    color: #c5a059;
    font-weight: 700;
}

.whm-flavour-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(26, 26, 26, 0.2);
    border-radius: 3px;
    outline: none;
}

.whm-flavour-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #c5a059;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.whm-flavour-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.whm-official-value {
    font-size: 10px;
    color: #646970;
    font-style: italic;
}

/* ===== Form Elements ===== */
.whm-form-group {
    margin-bottom: 20px;
}

.whm-form-group label {
    display: block;
    font-family: sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.whm-form-group input[type="text"],
.whm-form-group input[type="number"],
.whm-form-group input[type="date"],
.whm-form-group select,
.whm-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(26, 26, 26, 0.3);
    background: #fff;
    font-family: Georgia, serif;
    font-size: 14px;
    box-sizing: border-box;
}

.whm-form-group input:focus,
.whm-form-group select:focus,
.whm-form-group textarea:focus {
    outline: none;
    border-color: #c5a059;
}

.whm-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Georgia, serif;
    font-size: 14px;
    cursor: pointer;
}

.whm-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #c5a059;
}

/* ===== Tasting Notes ===== */
.whm-tasting-notes {
    margin-top: 20px;
}

.whm-tasting-notes label {
    display: block;
    font-family: sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.whm-tasting-notes textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(26, 26, 26, 0.3);
    background: #fff;
    font-family: Georgia, serif;
    font-size: 14px;
    resize: vertical;
}

/* ===== Flavour Radar Section ===== */
.whm-flavour-radar-section {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(26, 26, 26, 0.1);
}

.whm-section-title {
    font-family: Georgia, serif;
    font-size: 18px;
    margin: 0 0 20px;
    color: #1a1a1a;
}

.whm-radar-comparison {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.whm-radar-chart-wrapper {
    flex: 0 0 300px;
}

.whm-radar-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whm-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: sans-serif;
    font-size: 12px;
}

.whm-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.whm-user-tasting-notes {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.whm-user-tasting-notes h5 {
    font-family: sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #c5a059;
    margin: 0 0 10px;
}

.whm-user-tasting-notes p {
    font-family: Georgia, serif;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.whm-tasted-date {
    display: block;
    margin-top: 10px;
    font-family: sans-serif;
    font-size: 11px;
    color: #646970;
    font-style: italic;
}

/* ===== User Profile ===== */
.whm-user-profile {
    max-width: 900px;
    margin: 0 auto;
}

.whm-profile-header {
    display: flex;
    gap: 30px;
    padding: 40px;
    background: #f2ceb1;
    margin-bottom: 30px;
}

.whm-profile-avatar {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #f2ceb1;
}

.whm-profile-info {
    flex: 1;
}

.whm-profile-name {
    font-family: Georgia, serif;
    font-size: 32px;
    margin: 0 0 10px;
}

.whm-profile-location {
    font-family: Georgia, serif;
    font-size: 14px;
    font-style: italic;
    color: #646970;
    margin-bottom: 15px;
}

.whm-profile-bio {
    font-family: Georgia, serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.whm-profile-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.whm-stat {
    text-align: center;
}

.whm-stat-value {
    display: block;
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #c5a059;
}

.whm-stat-label {
    display: block;
    font-family: sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #646970;
}

/* ===== Collection Grid ===== */
.whm-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.whm-collection-item {
    background: #fff;
    border: 1px solid rgba(26, 26, 26, 0.1);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.whm-collection-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.whm-collection-item__image {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.whm-collection-item__image img {
    max-width: 80%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.whm-collection-item__name {
    font-family: Georgia, serif;
    font-size: 16px;
    margin: 0 0 8px;
}

.whm-collection-item__meta {
    font-family: sans-serif;
    font-size: 11px;
    color: #646970;
}

.whm-collection-item__rating {
    margin-top: 10px;
    font-family: Georgia, serif;
    font-size: 14px;
    color: #c5a059;
}

/* ===== Wishlist ===== */
.whm-wishlist {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.whm-wishlist-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid rgba(26, 26, 26, 0.1);
    text-decoration: none;
    color: inherit;
}

.whm-wishlist-item__image {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whm-wishlist-item__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.whm-wishlist-item__info {
    flex: 1;
}

.whm-wishlist-item__name {
    font-family: Georgia, serif;
    font-size: 18px;
    margin: 0 0 5px;
}

.whm-wishlist-item__notes {
    font-family: Georgia, serif;
    font-size: 13px;
    font-style: italic;
    color: #646970;
    margin: 0;
}

.whm-wishlist-item__actions {
    display: flex;
    gap: 10px;
}

/* ===== Member Directory ===== */
.whm-member-directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.whm-member-card {
    background: #fff;
    border: 1px solid rgba(26, 26, 26, 0.1);
    padding: 25px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: all 0.3s ease;
}

.whm-member-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.whm-member-card__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
    color: #f2ceb1;
}

.whm-member-card__name {
    font-family: Georgia, serif;
    font-size: 20px;
    margin: 0 0 5px;
}

.whm-member-card__location {
    font-family: Georgia, serif;
    font-size: 13px;
    font-style: italic;
    color: #646970;
    margin-bottom: 15px;
}

.whm-member-card__stats {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.whm-member-card__stat {
    font-family: sans-serif;
    font-size: 11px;
    color: #646970;
}

.whm-member-card__stat strong {
    color: #c5a059;
    font-size: 16px;
    display: block;
}

/* ===== Notifications ===== */
.whm-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background: #1a1a1a;
    color: #f2ceb1;
    border-radius: 4px;
    font-family: sans-serif;
    font-size: 14px;
    z-index: 999999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.whm-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.whm-notification.success {
    background: #00a32a;
    color: #fff;
}

.whm-notification.error {
    background: #d63638;
    color: #fff;
}

/* ===== Loading State ===== */
.whm-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .whm-modal__content {
        padding: 25px;
    }
    
    .whm-profile-header {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .whm-profile-avatar {
        margin: 0 auto;
    }
    
    .whm-profile-stats {
        justify-content: center;
    }
    
    .whm-action-buttons {
        flex-direction: column;
    }
    
    .whm-btn {
        width: 100%;
        justify-content: center;
    }
}
