/* Feed de Festa - Estilos */

/* Container principal */
#festa-upload-container,
#festa-feed-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-family: 'Arial', sans-serif;
}

/* Headers */
.festa-upload-header,
.festa-feed-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
}

.festa-upload-header h3,
.festa-feed-header h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: bold;
}

.festa-upload-header p,
.feed-subtitle {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

/* Formulário de upload */
#festa-upload-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group textarea {
    padding: 12px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* Upload de arquivo customizado */
.file-upload-label {
    display: inline-block;
    padding: 15px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: bold;
}

.file-upload-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.file-upload-label input[type="file"] {
    display: none;
}

/* Preview do arquivo */
#file-preview {
    margin-top: 15px;
    text-align: center;
}

#file-preview img,
#file-preview video {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Botão de envio */
#festa-upload-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#festa-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

#festa-upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Mensagens */
#festa-upload-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    display: none;
}

#festa-upload-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#festa-upload-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Feed de posts */
.festa-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Post individual */
.festa-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.festa-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.festa-post-media {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.festa-post-media img,
.festa-post-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.festa-post-content {
    padding: 15px;
}

.festa-post-author {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.festa-post-message {
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 14px;
}

.festa-post-date {
    color: #95a5a6;
    font-size: 12px;
    text-align: right;
}

/* Botão carregar mais */
#load-more-posts {
    display: block;
    margin: 30px auto 0;
    padding: 12px 25px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#load-more-posts:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Loading spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    #festa-upload-container,
    #festa-feed-container {
        margin: 10px;
        padding: 15px;
    }
    
    .festa-feed-grid {
        grid-template-columns: 1fr;
    }
    
    .festa-post-media {
        height: 200px;
    }
    
    .festa-upload-header h3,
    .festa-feed-header h3 {
        font-size: 20px;
    }
}

/* Animações */
.festa-post {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeitos especiais */
.festa-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    z-index: 1;
}

/* Indicador de novo post */
.festa-post.new-post {
    border: 2px solid #ff6b6b;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}