/* Components CSS - Widget and component styles */

/* Discord Widget (toggleable, from clean-bio) */
.discord-widget {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(184, 212, 240, 0.2);
    border-radius: 8px;
    padding: 15px;
    backdrop-filter: blur(20px);
    z-index: 1000;
    min-width: 250px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    animation: slideInLeft 1s ease-out;
    display: none; /* Hidden by default, toggleable */
}

/* Discord Server Widget */
.discord-server-widget-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    animation: slideInRight 1s ease-out;
}

.discord-server-widget {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(242, 217, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.discord-server-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.discord-server-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid rgba(242, 217, 255, 0.2);
}

.discord-server-info {
    flex: 1;
}

.discord-server-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f2d9ff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(242, 217, 255, 0.3);
}

.discord-server-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.discord-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(242, 217, 255, 0.7);
}

.discord-stat svg {
    color: rgba(242, 217, 255, 0.6);
}

.discord-join-button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: rgba(242, 217, 255, 0.22);
    border: 2px solid rgba(242, 217, 255, 0.12);
    border-radius: 8px;
    color: #f2d9ff;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.discord-join-button:hover {
    background: rgba(242, 217, 255, 0.32);
    border-color: rgba(242, 217, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 217, 255, 0.2);
}

.discord-widget.active {
    display: block;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #a0a0a0;
    border-bottom: 1px solid rgba(184, 212, 240, 0.2);
    padding-bottom: 8px;
}

.widget-header i {
    font-size: 16px;
    color: #7a9cc6;
}

.discord-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-container {
    position: relative;
}

.discord-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(184, 212, 240, 0.2);
}

.status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(20, 20, 20, 0.95);
}

.status-indicator.online {
    background-color: #43b581;
}

.status-indicator.idle {
    background-color: #faa61a;
}

.status-indicator.dnd {
    background-color: #f04747;
}

.status-indicator.offline {
    background-color: #747f8d;
}

.discord-info {
    flex: 1;
}

.discord-username {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e8e8e8;
    margin-bottom: 4px;
}

.discord-activity-frame {
    margin-top: 8px;
}

.activity-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-details {
    flex: 1;
}

.activity-text {
    font-size: 12px;
    color: #a0a0a0;
}

.activity-image-container {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
}

.activity-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Spotify Widget (toggleable, from clean-bio) */
.spotify-widget {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(184, 212, 240, 0.2);
    border-radius: 8px;
    padding: 15px;
    backdrop-filter: blur(20px);
    z-index: 1000;
    min-width: 250px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    animation: slideInRight 1s ease-out;
    display: none; /* Hidden by default, toggleable */
}

.spotify-widget.active {
    display: block;
}

.spotify-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.track-info {
    flex: 1;
}

.track-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e8e8e8;
    margin-bottom: 4px;
}

.artist-name {
    display: block;
    font-size: 12px;
    color: #a0a0a0;
}

.album-art {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    display: none;
}

.album-art.active {
    display: block;
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Redirect Popup (from bia-bio) */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.popup-overlay.active {
    display: flex;
}

.popup-container {
    background: rgba(25, 25, 25, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 30px;
    max-width: 400px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.popup-message {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.popup-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.popup-button {
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.popup-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.popup-button-confirm {
    background: rgba(67, 181, 129, 0.2);
    border-color: rgba(67, 181, 129, 0.5);
}

.popup-button-confirm:hover {
    background: rgba(67, 181, 129, 0.3);
}

/* Custom Cursor (from bia-bio) */
.custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 10001;
    transition: width 0.3s, height 0.3s;
    transform: translate(-50%, -50%);
    display: none; /* Hidden by default, toggleable */
}

.custom-cursor.active {
    display: block;
}

.custom-cursor.hover {
    width: 16px;
    height: 16px;
}

/* Snow Container (toggleable, from clean-bio) */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    display: none; /* Hidden by default, toggleable */
}

.snow-container.active {
    display: block;
}

.snow {
    position: absolute;
    top: -10px;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: snowfall linear infinite;
    opacity: 0.8;
}


