/* StreamoreLinks Plugin Styles */

/* Floating Comment Dialog */
.streamorelinks-comment-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.streamorelinks-comment-dialog-content {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: streamorelinks-slideIn 0.3s ease-out;
}

@keyframes streamorelinks-slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.streamorelinks-comment-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.streamorelinks-comment-dialog-header h3 {
    margin: 0;
    color: #333333;
    font-size: 18px;
    font-weight: 600;
}

.streamorelinks-comment-dialog-close {
    background: none;
    border: none;
    color: #666666;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.streamorelinks-comment-dialog-close:hover {
    background-color: #f0f0f0;
    color: #333333;
}

.streamorelinks-comment-dialog-body {
    padding: 24px;
}

.streamorelinks-comment-dialog-body p {
    margin: 0 0 20px 0;
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    color: #333333;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Make placeholders clearly visible on white background */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999999;
    opacity: 0.8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit Button */
.streamorelinks-submit-btn {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 4px 15px -4px rgba(0, 115, 170, 0.4);
}

.streamorelinks-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px -8px hsl(217 91% 55% / 0.5);
}

.streamorelinks-submit-btn:active {
    transform: translateY(0);
}

/* Comments Form Page */
.streamorelinks-comments-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.streamorelinks-comments-header {
    text-align: center;
    margin-bottom: 40px;
}

.streamorelinks-comments-header h1 {
    color: hsl(210 40% 98%);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.streamorelinks-comments-header p {
    color: hsl(217 20% 65%);
    font-size: 16px;
    line-height: 1.6;
}

.streamorelinks-comments-form-container {
    background: linear-gradient(135deg, hsl(217 91% 8%), hsl(217 91% 12%));
    border: 1px solid hsl(217 50% 20%);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px -10px hsl(217 91% 55% / 0.3);
}

/* Comments Display */
.streamorelinks-comments-list {
    margin-top: 40px;
}

.streamorelinks-comment-item {
    background: hsl(217 91% 10%);
    border: 1px solid hsl(217 50% 20%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.streamorelinks-comment-item:hover {
    border-color: hsl(217 91% 55%);
    box-shadow: 0 4px 20px -4px hsl(217 91% 5% / 0.5);
}

.streamorelinks-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.streamorelinks-comment-author {
    font-weight: 600;
    color: hsl(210 40% 98%);
    font-size: 16px;
}

.streamorelinks-comment-meta {
    color: hsl(217 20% 65%);
    font-size: 14px;
}

.streamorelinks-comment-country {
    background: hsl(217 91% 15%);
    color: hsl(217 91% 55%);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

.streamorelinks-comment-message {
    color: hsl(210 40% 98%);
    line-height: 1.6;
    font-size: 15px;
}

/* Success/Error Messages */
.streamorelinks-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.streamorelinks-message.success {
    background-color: hsl(142 76% 36% / 0.1);
    border: 1px solid hsl(142 76% 36%);
    color: hsl(142 76% 36%);
}

.streamorelinks-message.error {
    background-color: hsl(0 84% 60% / 0.1);
    border: 1px solid hsl(0 84% 60%);
    color: hsl(0 84% 60%);
}

/* Loading State */
.streamorelinks-loading {
    opacity: 0.6;
    pointer-events: none;
}

.streamorelinks-loading .streamorelinks-submit-btn {
    position: relative;
}

.streamorelinks-loading .streamorelinks-submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: streamorelinks-spin 1s linear infinite;
}

@keyframes streamorelinks-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .streamorelinks-comment-dialog-content {
        width: 95%;
        margin: 20px;
    }
    
    .streamorelinks-comment-dialog-header,
    .streamorelinks-comment-dialog-body {
        padding: 16px;
    }
    
    .streamorelinks-comments-form-container {
        padding: 24px;
    }
    
    .streamorelinks-comments-header h1 {
        font-size: 24px;
    }
}

/* Admin Dashboard Widget */
.streamorelinks-stats-widget {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2271b1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* WiFi Comments Frontend Styling */
.wifi-comment-form {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 0.75rem;
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.wifi-comment-form .form-group {
    margin-bottom: 1.5rem;
}

.wifi-comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.wifi-comment-form input,
.wifi-comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #333;
    font-size: 0.875rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wifi-comment-form input:focus,
.wifi-comment-form textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.wifi-comment-form .submit-btn {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.wifi-comment-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 115, 170, 0.4);
    background: linear-gradient(135deg, #005a87, #004a6f);
}

.wifi-comments-list {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e9ecef;
}

.wifi-comments-list h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.wifi-comment {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 3px solid #0073aa;
}

.comment-header {
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.comment-author {
    color: #0073aa;
    font-weight: 600;
}

.comment-country {
    color: #666;
    font-size: 0.875rem;
}

.comment-date {
    color: #999;
    font-size: 0.75rem;
    margin-left: auto;
}

.comment-content {
    color: #333;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.admin-reply {
    background-color: #e3f2fd;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border-left: 3px solid #2196f3;
    margin-top: 0.75rem;
}

.admin-reply strong {
    color: #1976d2;
}
