/* 
   Clifans - Estilos CSS Principais
   Cores principais: #FF3E8E (rosa), #FFFFFF (branco), #000000 (preto)
*/

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: #FF3E8E;
    transition: color 0.3s ease;
}

a:hover {
    color: #d92d75;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #000;
}

.logo span {
    color: #FF3E8E;
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: #FF3E8E;
    background-color: rgba(255, 62, 142, 0.1);
}

.main-nav a.btn-primary {
    background-color: #FF3E8E;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
}

.main-nav a.btn-primary:hover {
    background-color: #d92d75;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
}

.mobile-menu ul {
    padding: 20px;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    color: #FF3E8E;
    background-color: rgba(255, 62, 142, 0.1);
}

.mobile-menu.active {
    display: block;
}

/* ===== MAIN CONTENT ===== */
main {
    padding: 40px 0;
    min-height: calc(100vh - 70px - 300px); /* Viewport height - header - footer */
}

/* Seção de boas-vindas */
.welcome-section {
    text-align: center;
    margin-bottom: 50px;
}

.welcome-section h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.welcome-section .highlight {
    color: #FF3E8E;
}

.welcome-section p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Grade de criadores */
.creators-section {
    margin-bottom: 60px;
}

.creators-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.creators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.creator-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.creator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.creator-img {
    height: 200px;
    overflow: hidden;
}

.creator-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.creator-card:hover .creator-img img {
    transform: scale(1.05);
}

.creator-info {
    padding: 20px;
}

.creator-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #333;
}

.creator-info .username {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.creator-info .bio {
    margin-bottom: 20px;
    color: #666;
    font-size: 15px;
}

/* Sobre a seção */
.about-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.about-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature {
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 40px;
    color: #FF3E8E;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.feature p {
    color: #666;
}

/* ===== FOOTER ===== */
.main-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-logo span {
    color: #FF3E8E;
}

.footer-logo p {
    color: #bbb;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #FF3E8E;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FF3E8E;
}

.footer-contact ul li i {
    color: #FF3E8E;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #FF3E8E;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #888;
    font-size: 14px;
}

/* ===== BOTÕES ===== */
.btn-primary {
    display: inline-block;
    background-color: #FF3E8E;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary:hover {
    background-color: #d92d75;
    color: #fff;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #FF3E8E;
    padding: 9px 19px;
    border-radius: 25px;
    font-weight: 500;
    border: 1px solid #FF3E8E;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-secondary:hover {
    background-color: rgba(255, 62, 142, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== FORMULÁRIOS ===== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px - 300px);
}

.auth-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

.auth-form h1 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #FF3E8E;
    outline: none;
}

.form-group .forgot-password {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-size: 14px;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links p {
    color: #666;
    font-size: 15px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 15px;
}

.alert.error {
    background-color: #fee;
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

.alert.success {
    background-color: #eef7ee;
    color: #27ae60;
    border-left: 4px solid #27ae60;
}

/* ===== PERFIL DE CRIADOR ===== */
.profile-container {
    margin-top: 30px;
}

.profile-header {
    margin-bottom: 30px;
}

.profile-cover {
    height: 300px;
    background-color: #ccc;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    position: relative;
}

.profile-avatar {
    position: absolute;
    bottom: -50px;
    left: 30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    padding-top: 60px;
    padding-left: 30px;
    padding-right: 30px;
}

.profile-info h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.profile-info .username {
    font-size: 16px;
    color: #888;
    margin-bottom: 15px;
}

.profile-info .bio {
    margin-bottom: 20px;
    max-width: 600px;
}

.subscription-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 400px;
    margin-bottom: 30px;
}

.subscription-price {
    color: #333;
}

.subscription-price .price {
    font-size: 24px;
    font-weight: 700;
    color: #FF3E8E;
}

.subscription-price .period {
    font-size: 14px;
    color: #888;
}

.subscription-active {
    background-color: #eef7ee;
    color: #27ae60;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 30px;
}

.subscription-active i {
    margin-right: 10px;
}

.profile-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.posts-container h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.post {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.post-author {
    display: flex;
    align-items: center;
}

.post-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.post-author h3 {
    font-size: 16px;
    margin-bottom: 3px;
}

.post-date {
    font-size: 14px;
    color: #888;
}

.post-content p {
    margin-bottom: 15px;
}

.post-media {
    border-radius: 10px;
    overflow: hidden;
    max-height: 500px;
}

.post-media img,
.post-media video {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.blurred-media {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    max-height: 500px;
}

.blurred-media img {
    filter: blur(20px);
    width: 100%;
    height: auto;
    object-fit: contain;
}

.video-placeholder {
    background-color: #000;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder i {
    font-size: 60px;
    color: #fff;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blur-overlay p {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 25px;
}

.post-actions {
    display: flex;
    margin-top: 15px;
}

.like-form {
    display: inline-block;
}

.like-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.like-btn i {
    margin-right: 5px;
}

.like-btn:hover {
    color: #FF3E8E;
}

.like-btn.liked {
    color: #FF3E8E;
}

.like-btn.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.subscribe-banner {
    margin-top: 50px;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.subscribe-banner h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.subscribe-banner p {
    margin-bottom: 20px;
    color: #666;
}

.no-posts {
    text-align: center;
    padding: 50px 0;
    color: #888;
}

/* ===== PERFIL DE USUÁRIO ===== */
.user-profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #FF3E8E;
}

.tab-button.active {
    color: #FF3E8E;
    border-bottom: 2px solid #FF3E8E;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.profile-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.subscription-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

.subscription-creator {
    display: flex;
    align-items: center;
}

.subscription-creator img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.subscription-creator h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.subscription-creator .username {
    font-size: 14px;
    color: #888;
}

.subscription-details p {
    margin-bottom: 5px;
    font-size: 14px;
}

.status-ativa {
    color: #27ae60;
}

.status-cancelada {
    color: #e74c3c;
}

.status-expirada {
    color: #f39c12;
}

.no-subscriptions {
    text-align: center;
    padding: 50px 0;
    color: #888;
}

/* ===== MINHAS ASSINATURAS ===== */
.subscriptions-container {
    max-width: 1000px;
    margin: 0 auto;
}

.subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* ===== EXPLORAR ===== */
.explore-container {
    max-width: 1200px;
    margin: 0 auto;
}

.explore-header {
    text-align: center;
    margin-bottom: 40px;
}

.search-container {
    margin: 30px auto;
    max-width: 600px;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #FF3E8E;
    outline: none;
}

.search-button {
    background-color: #FF3E8E;
    color: #fff;
    border: none;
    border-radius: 0 25px 25px 0;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #d92d75;
}

.creator-card .creator-cover {
    height: 150px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    position: relative;
}

.creator-card .creator-avatar {
    position: absolute;
    bottom: -30px;
    left: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.creator-card .creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-stats {
    display: flex;
    margin-bottom: 15px;
    gap: 20px;
}

.stat {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.stat i {
    margin-right: 5px;
    color: #888;
}

.subscription-price {
    margin-bottom: 15px;
    font-size: 16px;
}

.subscription-price .price {
    font-weight: 700;
    color: #FF3E8E;
    font-size: 20px;
}

.subscription-price .period {
    color: #888;
    font-size: 14px;
}

.btn-full {
    width: 100%;
}

.no-results {
    text-align: center;
    padding: 50px 0;
    color: #888;
}

/* ===== RESPONSIVO ===== */
@media screen and (max-width: 992px) {
    .creators-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .profile-cover {
        height: 200px;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
        bottom: -40px;
    }
    
    .profile-info {
        padding-top: 50px;
    }
    
    .subscription-card {
        grid-template-columns: 1fr;
    }
    
    .creators-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
}

@media screen and (max-width: 576px) {
    .welcome-section h1 {
        font-size: 28px;
    }
    
    .welcome-section p {
        font-size: 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .auth-form {
        padding: 30px 20px;
    }
    
    .profile-cover {
        height: 150px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
        bottom: -30px;
    }
}