/* Instagram Gallery and Modal Styles */

/* Instagram Grid */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    align-items: stretch;
    grid-auto-rows: minmax(600px, auto);
}

.instagram-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    min-height: 600px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.instagram-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.instagram-post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible;
    min-height: 600px;
}

.post-header {
    display: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.user-details h4 {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
}

.user-details span {
    font-size: 0.7rem;
    color: #666;
}

.post-actions {
    display: flex;
    gap: 0.5rem;
}

.instagram-link {
    color: #e4405f;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.instagram-link:hover {
    color: #c13584;
}

.post-content {
    padding: 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
    min-height: 550px;
}

.post-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.post-caption {
    margin-bottom: 0.75rem;
    overflow: visible;
}

.post-caption p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.instagram-embed {
    margin-top: 0.75rem;
    overflow: visible;
    height: 100%;
    flex: 1;
    min-height: 500px;
}

.instagram-embed iframe {
    width: 100%;
    border-radius: 6px;
    max-width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    display: block;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.empty-content {
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    color: #e4405f;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.5rem;
}

.empty-state p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

/* Instagram Actions */
.instagram-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
    color: white;
    text-decoration: none;
}

/* Instagram Modal */
.instagram-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-content {
    padding: 1.5rem;
}

/* Consent Section */
.consent-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.consent-header i {
    font-size: 1.5rem;
    color: #007bff;
}

.consent-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
}

.consent-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #555;
}

.consent-checklist {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.consent-checklist h5 {
    margin: 0 0 0.75rem 0;
    color: #333;
    font-size: 1rem;
}

.consent-checklist ul {
    margin: 0;
    padding-left: 1.25rem;
}

.consent-checklist li {
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.4;
}

/* Checkbox Styles */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: #007bff;
    border-color: #007bff;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Instagram Guide */
.instagram-guide {
    display: none;
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.guide-header i {
    font-size: 1.5rem;
    color: #e4405f;
}

.guide-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
}

.guide-steps {
    margin-bottom: 2rem;
}

.step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.step-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h5 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1rem;
}

.step-content p {
    margin: 0;
    color: #555;
    line-height: 1.4;
    font-size: 0.9rem;
}

/* Instagram Form */
.instagram-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-info {
    border-left: 4px solid #007bff;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success .notification-content i {
    color: #28a745;
}

.notification-error .notification-content i {
    color: #dc3545;
}

.notification-info .notification-content i {
    color: #007bff;
}

.notification-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        grid-auto-rows: minmax(450px, auto);
    }
}

@media (max-width: 480px) {
    .instagram-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        grid-auto-rows: minmax(400px, auto);
    }
    
    .instagram-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .modal-container {
        width: 95%;
        margin: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .post-header {
        padding: 0.5rem;
    }
    
    .post-content {
        padding: 0.5rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .instagram-form {
        padding: 1rem;
    }
}
