/**
 * OzSparkHub Combined Components Styles
 * 
 * This file combines all component-specific styles into one optimized file
 * Includes: Comments, Contact Form, Social Sharing, Search
 * Last Updated: 2025-08-26
 */

/* ==================== COMMENT SYSTEM ==================== */

.comment-system {
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

.comment-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.comment-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Comment Form */
.comment-form-container {
    margin-bottom: 2rem;
}

.comment-form {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Comment List */
.comments-list {
    margin-top: 2rem;
}

.comment-item {
    padding: 1.5rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.comment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ==================== CONTACT FORM ==================== */

.contact-form-wrapper {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form .field {
    margin-bottom: 1.5rem;
}

.contact-form .label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.contact-form .input,
.contact-form .textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #f8f9fa;
}

.contact-form .input:focus,
.contact-form .textarea:focus {
    border-color: #FF6F3C;
    box-shadow: 0 0 0 3px rgba(255, 111, 60, 0.1);
    outline: none;
    background: white;
}

.contact-form .button {
    background: linear-gradient(45deg, #FF6F3C, #FF8C69);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 111, 60, 0.3);
}

.contact-form .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 111, 60, 0.4);
}

/* ==================== SOCIAL SHARING ==================== */

.social-share-container {
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.social-share-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.social-share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Social Platform Colors */
.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0077b5; }
.share-whatsapp { background: #25d366; }
.share-email { background: #ea4335; }
.share-reddit { background: #ff4500; }

/* ==================== SEARCH COMPONENT ==================== */

.search-container {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
}

.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    border-color: #FF6F3C;
    box-shadow: 0 0 0 4px rgba(255, 111, 60, 0.1);
    outline: none;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #FF6F3C;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #ff5722;
}

/* Search Results */
.search-results {
    margin-top: 2rem;
}

.search-result-item {
    padding: 1rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    border-color: #FF6F3C;
    box-shadow: 0 4px 10px rgba(255, 111, 60, 0.1);
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 769px) {
    /* Comments Mobile */
    .comment-form {
        padding: 1rem;
    }
    
    .comment-item {
        padding: 1rem;
    }
    
    /* Contact Form Mobile */
    .contact-form-wrapper {
        padding: 1rem;
        margin: 1rem;
    }
    
    /* Social Share Mobile */
    .social-share-buttons {
        gap: 0.5rem;
    }
    
    .social-share-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    /* Search Mobile */
    .search-container {
        margin: 1rem;
    }
    
    .search-input {
        padding: 0.75rem 3rem 0.75rem 0.75rem;
    }
}

/* Mobile adjustments - already covered by 769px breakpoint above */
/* Removed 480px breakpoint to simplify to two modes: mobile (<769px) and desktop/tablet (≥769px) */

/* ==================== UTILITY CLASSES ==================== */

.is-hidden {
    display: none;
}

.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.has-error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.success-message {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}