/* Widget Styles */

.widget {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin: 30px 10px;
}

.widget-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.widget-subtitle {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
}

.widget-list-item:last-child {
    border-bottom: none;
}

.widget-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
}

.widget-link:hover {
    color: #d32f2f;
}

.widget-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #d32f2f;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
    flex-shrink: 0;
}

.widget-item-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.4;
    flex: 1;
}

/* Latest widget - date styling */
.latest-widget .widget-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.widget-date {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #888;
}

/* Tip widget */
.tip-widget .widget-description {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    color: #666;
    margin-bottom: 15px;
}

.tip-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tip-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: border-color 0.2s, background-color 0.2s;
}

.tip-method:hover {
    border-color: #d32f2f;
    background: #fafafa;
}

.tip-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.tip-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.tip-value {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #666;
    margin-left: auto;
}

.tip-note {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #888;
    margin-top: 12px;
    font-style: italic;
}

/* Push notifications widget */
.push-widget .widget-description {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    color: #666;
    margin-bottom: 15px;
}

.push-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.push-button:hover:not(.disabled):not(.subscribed) {
    background: #b71c1c;
}

.push-button.subscribed {
    background: #4caf50;
    cursor: default;
}

.push-button.disabled {
    background: #ccc;
    cursor: not-allowed;
}

.push-icon {
    font-size: 20px;
}

.push-note {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    text-align: center;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .widget {
        padding: 15px;
        margin: 20px 0;
    }

    .widget-title {
        font-size: 18px;
    }

    .widget-rank {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .widget-item-title {
        font-size: 15px;
    }

    .tip-method {
        flex-wrap: wrap;
    }

    .tip-value {
        width: 100%;
        margin-left: 36px;
        margin-top: -4px;
    }

    .push-button {
        font-size: 14px;
        padding: 12px 16px;
    }
}
