/* Eroids Functionality Styles */

/* Homepage Layout */
.eroids-homepage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.eroids-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .eroids-grid {
        grid-template-columns: 1fr;
    }
}

/* Top Sources Section */
.top-sources {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.top-sources h2 {
    margin-top: 0;
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.source-ranking {
    list-style: none;
    padding: 0;
    margin: 0;
}

.source-ranking li {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.source-ranking li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.source-rank {
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 15px;
    color: #ff6b35;
}

.source-name {
    flex-grow: 1;
    font-weight: 500;
}

.source-score {
    background: #ff6b35;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
}

/* Content Sections */
.content-section {
    background: #f8f9fa;
    padding: 25px;
    margin: 20px 0;
    border-radius: 10px;
    border-left: 4px solid #ff6b35;
}

.content-section h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-section h3:before {
    content: "■ ";
    color: #ff6b35;
}

/* Review Items */
.review-item, .forum-item, .picture-item {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 3px solid #ff6b35;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.review-item:hover, .forum-item:hover, .picture-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.review-title {
    font-weight: bold;
    color: #333;
    text-decoration: none;
    font-size: 1.1em;
    margin-bottom: 8px;
    display: block;
}

.review-title:hover {
    color: #ff6b35;
}

.review-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.review-rating {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    margin-right: 10px;
}

.review-excerpt {
    color: #555;
    line-height: 1.6;
}

/* Forum Styling */
.forum-category {
    background: #e3f2fd;
    color: #1565c0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-right: 10px;
}

.forum-replies {
    color: #ff6b35;
    font-weight: bold;
    font-size: 0.9em;
}

/* Picture Gallery */
.picture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.picture-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.picture-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 10px;
    border-radius: 0 0 8px 8px;
}

/* Promotional Deals */
.promo-item {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.promo-item:before {
    content: "HOT DEAL";
    position: absolute;
    top: 10px;
    right: -30px;
    background: #fff;
    color: #ff6b35;
    padding: 5px 40px;
    font-size: 0.8em;
    font-weight: bold;
    transform: rotate(45deg);
}

.promo-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.promo-description {
    opacity: 0.9;
    line-height: 1.6;
}

/* Sidebar Styling */
.sidebar {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sidebar-section {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Rating Stars */
.rating-stars {
    display: inline-block;
    margin-right: 10px;
}

.rating-stars .star {
    color: #ffd700;
    font-size: 1.2em;
}

.rating-stars .star.empty {
    color: #ddd;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .eroids-homepage {
        padding: 15px;
    }
    
    .eroids-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .top-sources {
        padding: 15px;
    }
    
    .source-ranking li {
        padding: 12px;
        flex-direction: column;
        text-align: center;
    }
    
    .source-rank {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .content-section {
        padding: 20px 15px;
    }
    
    .picture-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Styles */
.eroids-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.eroids-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    color: white;
    text-decoration: none;
}

/* Community Stats */
.community-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #ff6b35;
    display: block;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Review Form Styling */
.eroids-review-form {
    max-width: 700px;
    margin: 20px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.eroids-review-form h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8em;
    text-align: center;
    border-bottom: 3px solid #ff6b35;
    padding-bottom: 10px;
}

.source-review-form .form-group {
    margin-bottom: 25px;
}

.source-review-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 1em;
}

.source-review-form input[type="text"],
.source-review-form select,
.source-review-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.source-review-form input:focus,
.source-review-form select:focus,
.source-review-form textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.rating-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ff6b35;
}

.rating-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.rating-group:last-child {
    border-bottom: none;
}

.rating-group label {
    margin-bottom: 0;
    font-weight: 600;
    color: #555;
    min-width: 140px;
}

.star-rating {
    display: flex;
    gap: 4px;
    align-items: center;
}

.star-rating .star {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #ffd700;
    transform: scale(1.1);
}

.submit-review-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 30px auto 0;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.submit-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.submit-review-btn:active {
    transform: translateY(0);
}

/* Steroid Review Page Layout */
.steroid-review-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.steroid-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.steroid-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
}

.steroid-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.meta-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.meta-card h4 {
    color: #ff6b35;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.reviews-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.review-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.overall-rating {
    font-size: 3em;
    font-weight: bold;
    color: #ff6b35;
}

.rating-breakdown {
    flex-grow: 1;
    margin-left: 30px;
}

.rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.rating-bar {
    flex-grow: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    margin: 0 15px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #ffd700);
    transition: width 0.3s ease;
}

/* Responsive Design for Review Forms */
@media (max-width: 768px) {
    .eroids-review-form {
        margin: 20px 10px;
        padding: 20px;
    }
    
    .rating-groups {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .rating-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .rating-group label {
        min-width: auto;
    }
    
    .steroid-meta {
        grid-template-columns: 1fr;
    }
    
    .rating-breakdown {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .rating-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .rating-bar {
        width: 100%;
        margin: 0;
    }
}

/* Additional Layout Utilities */
.eroids-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.eroids-section {
    margin-bottom: 40px;
}

.eroids-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eroids-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.eroids-card-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.eroids-card-body {
    padding: 25px;
}

.eroids-text-center { text-align: center; }
.eroids-text-muted { color: #666; }
.eroids-mb-0 { margin-bottom: 0; }
.eroids-mb-10 { margin-bottom: 10px; }
.eroids-mb-20 { margin-bottom: 20px; }
.eroids-mt-20 { margin-top: 20px; }

/* Fix for duplicate forms and content spacing */
.eroids-review-form:not(:first-of-type) {
    display: none !important;
}

/* Hide duplicate review forms in content */
.entry-content .eroids-review-form + .eroids-review-form,
.post-content .eroids-review-form + .eroids-review-form {
    display: none !important;
}

/* Alternative: Hide all but first review form on page */
body .eroids-review-form:nth-of-type(n+2) {
    display: none !important;
}

/* Clean up WordPress default styling conflicts */
.eroids-review-form * {
    box-sizing: border-box;
}

.eroids-review-form .form-group input,
.eroids-review-form .form-group select,
.eroids-review-form .form-group textarea {
    width: 100% !important;
    max-width: 100%;
}
