/* Guest Reviews Plugin Styles */

/* Review Form */
.gr-review-form-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gr-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gr-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gr-form-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.gr-form-group input[type="text"],
.gr-form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.gr-form-group input[type="text"]:focus,
.gr-form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.gr-stars {
    display: flex;
    gap: 8px;
    font-size: 32px;
    cursor: pointer;
}

.gr-star {
    color: #ddd;
    transition: all 0.2s ease;
    user-select: none;
}

.gr-star:hover,
.gr-star.active {
    color: #ffc107;
    transform: scale(1.1);
}

.gr-submit-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.gr-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.gr-submit-btn:active {
    transform: translateY(0);
}

.gr-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gr-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    animation: slideIn 0.3s ease;
}

.gr-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.gr-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Latest Reviews Box */
.gr-latest-reviews-box {
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.gr-latest-reviews-box h3 {
    margin: 0 0 25px 0;
    font-size: 28px;
    text-align: center;
    color: white;
}

.gr-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    /* Space for scrollbar */
}

/* Custom Scrollbar */
.gr-reviews-list::-webkit-scrollbar {
    width: 6px;
}

.gr-reviews-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.gr-reviews-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
}

.gr-reviews-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}

.gr-review-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
    /* Prevent items from shrinking */
}

.gr-review-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.gr-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.gr-review-header strong {
    font-size: 18px;
}

.gr-country {
    font-size: 14px;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
}

.gr-review-stars {
    margin: 8px 0;
    font-size: 18px;
}

.gr-review-text {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.95;
}

.gr-view-all {
    text-align: center;
    margin-top: 20px;
}

.gr-btn {
    display: inline-block;
    padding: 14px 32px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gr-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    color: #667eea;
}

/* All Reviews Grid */
.gr-all-reviews-container {
    padding: 40px 20px;
}

.gr-all-reviews-container h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gr-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.gr-review-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gr-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.gr-review-card h4 {
    margin: 0 0 5px 0;
    font-size: 20px;
    color: #333;
}

.gr-review-date {
    margin-top: 15px;
    font-size: 13px;
    color: #999;
    text-align: right;
}

.gr-load-more-container {
    text-align: center;
    margin-top: 40px;
}

#gr-load-more {
    padding: 14px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#gr-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

#gr-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gr-reviews-grid {
        grid-template-columns: 1fr;
    }

    .gr-review-form-container {
        padding: 20px;
    }

    .gr-latest-reviews-box {
        padding: 20px;
    }
}

/* 
=====================================
   ADMIN DASHBOARD STYLES
=====================================
*/

/* Documentation Page */
.gr-docs-wrap {
    max-width: 1200px;
    margin: 20px auto;
}

.gr-welcome-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.gr-welcome-content h2 {
    color: white;
    font-size: 32px;
    margin: 0 0 10px;
    line-height: 1.2;
}

.gr-welcome-content p {
    font-size: 18px;
    margin: 0;
    opacity: 0.9;
}

.gr-welcome-icon .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.2);
}

.gr-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.gr-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: transform 0.2s;
}

.gr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.gr-card-header {
    background: #f8f9fa;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.gr-card-header .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #667eea;
}

.gr-card-header h2 {
    margin: 0;
    font-size: 18px;
    color: #23282d;
}

.gr-card-body {
    padding: 25px;
}

/* Documentation Items */
.gr-doc-item {
    margin-bottom: 30px;
}

.gr-doc-item:last-child {
    margin-bottom: 0;
}

.gr-doc-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.gr-doc-title h3 {
    margin: 0;
    font-size: 16px;
    color: #23282d;
    font-weight: 600;
}

.gr-badge {
    background: #e6f7ff;
    color: #0073aa;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.gr-doc-item p {
    color: #50575e;
    margin: 0 0 10px;
}

.gr-code-block {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    padding: 10px 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Consolas', 'Monaco', monospace;
    color: #c7254e;
    background-color: #f9f2f4;
}

.gr-code-block code {
    background: none;
    padding: 0;
    font-size: 14px;
    color: #d63384;
}

.gr-copy-btn {
    background: none;
    border: none;
    color: #a7aaad;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.gr-copy-btn:hover {
    color: #2271b1;
    background: rgba(34, 113, 177, 0.1);
}

/* Quick Guide */
.gr-guide-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    margin-top: 0;
}

.gr-guide-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.gr-guide-section ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    color: #50575e;
}

.gr-guide-section ul li:before {
    content: "•";
    color: #667eea;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.gr-separator {
    height: 1px;
    background: #eee;
    margin: 25px 0;
}

.gr-tip-box {
    background: #fff8e5;
    border-left: 4px solid #f0b849;
    padding: 15px;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    line-height: 1.5;
}

.gr-footer-credits {
    text-align: center;
    color: #a7aaad;
    margin-top: 40px;
    font-size: 13px;
}

/* Responsive for Admin */
@media (max-width: 782px) {
    .gr-welcome-hero {
        flex-direction: column;
        text-align: center;
    }

    .gr-welcome-icon {
        margin-top: 20px;
    }

    .gr-docs-grid {
        grid-template-columns: 1fr;
    }
}