/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica Neue, sans-serif;
    background: #000;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Overlay de fundo animado */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 90%),
        radial-gradient(circle at 80% 20%, rgba(54, 231, 125, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 100%, rgba(54, 231, 125, 0.03) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(1px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

/* Container principal */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 0px solid rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: profilePulse 2s ease-in-out infinite;
    margin-top: 64px;
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes profilePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.05); }
    50% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
}

.main-title {
    font-size: 2.5rem;
    font-weight: 500;
    color: white;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    margin-top:10px;
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin-top:-21px;
}

/* Container de links */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 8rem;
}

/* Blocos de link */
.link-block {
    background: rgba(0, 255, 99, 0.76);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 16px -6px rgb(0, 255, 50);/* Brilho interno amarelado */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.link-block:nth-child(1) { animation-delay: 0.1s; }
.link-block:nth-child(2) { animation-delay: 0.2s; }
.link-block:nth-child(3) { animation-delay: 0.3s; }
.link-block:nth-child(4) { animation-delay: 0.4s; }

.link-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-block:hover::before {
    left: 100%;
}

.link-block:hover {
    transform: translateY(-5px);
    background: rgba(54, 231, 102, 0.28);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.link-block:active {
    transform: translateY(-2px);
}

.link-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.link-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.link-block:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
}

.icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-info {
    flex: 1;
}

.link-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.link-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.link-arrow {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.link-block:hover .link-arrow {
    color: white;
    transform: translateX(5px);
}

/* Footer */
.footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.32);
    font-size: 0.6rem;
    animation: fadeIn 1s ease-out 0.5s both;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .link-block {
        padding: 1.25rem;
    }
    
    .link-content {
        gap: 0.75rem;
    }
    
    .link-icon {
        width: 50px;
        height: 50px;
    }
    
    .link-title {
        font-size: 1.1rem;
    }
    
    .link-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.75rem;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .main-title {
        font-size: 1.75rem;
    }
    
    .link-block {
        padding: 1rem;
    }
    
    .link-icon {
        width: 45px;
        height: 45px;
    }
}

/* Estados de loading e interação */
.link-block.loading {
    pointer-events: none;
    opacity: 0.7;
}

.link-block.loading .link-arrow {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Efeitos especiais */
.link-block:hover .link-title {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Gradientes personalizáveis para diferentes tipos de link */
.link-block.primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
}

.link-block.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
}

.link-block.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%);
}

.link-block.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
}


/* Seção de links de imagem */
.image-links-section {
    margin: 3rem 0;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.image-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Blocos de imagem com link */
.image-link-block {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-link-block:nth-child(1) { animation-delay: 0.7s; }
.image-link-block:nth-child(2) { animation-delay: 0.8s; }
.image-link-block:nth-child(3) { animation-delay: 0.9s; }

.image-link-block:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.image-link-block:active {
    transform: translateY(-5px) scale(1.01);
}

.image-link-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(0.8);
}

.image-link-block:hover .image-link-img {
    transform: scale(1.1);
    filter: brightness(1);
}

/* Overlay dos blocos de imagem */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: all 0.4s ease;
    opacity: 0.9;
}

.image-link-block:hover .image-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.05) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    opacity: 1;
}

.image-overlay-content {
    width: 100%;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.image-link-block:hover .image-overlay-content {
    transform: translateY(0);
}

.image-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.image-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.image-link-block:hover .image-title {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.image-link-block:hover .image-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Efeito de brilho nos blocos de imagem */
.image-link-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.image-link-block:hover::before {
    left: 100%;
}

/* Estados de loading para blocos de imagem */
.image-link-block.loading {
    pointer-events: none;
    opacity: 0.7;
}

.image-link-block.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

/* Responsividade para blocos de imagem */
@media (max-width: 768px) {
    .image-links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .image-link-img {
        height: 180px;
    }
    
    .image-overlay {
        padding: 1rem;
    }
    
    .image-title {
        font-size: 1.1rem;
    }
    
    .image-subtitle {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .image-links-grid {
        gap: 0.75rem;
    }
    
    .image-link-img {
        height: 160px;
    }
    
    .image-overlay {
        padding: 0.75rem;
    }
    
    .image-title {
        font-size: 1rem;
    }
    
    .image-subtitle {
        font-size: 0.8rem;
    }
}

/* Variações de estilo para diferentes tipos de imagem */
.image-link-block.featured {
    grid-column: span 2;
}

.image-link-block.featured .image-link-img {
    height: 250px;
}

.image-link-block.compact .image-link-img {
    height: 150px;
}

/* Efeito especial para blocos de imagem em modo de edição */
.image-link-block.edit-mode {
    border: 2px dashed rgba(255, 255, 255, 0.5);
}

.image-link-block .edit-overlay {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* Impedir arrastar imagens e seleção de texto */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

.link-block, .image-link-block {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Permitir pointer events apenas nos containers clicáveis */
.link-block, .image-link-block {
    pointer-events: auto;
}

/* Melhorar a área de toque no mobile */
@media (max-width: 768px) {
    .link-block, .image-link-block {
        min-height: 44px; /* Área mínima recomendada para toque */
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Impedir zoom no duplo toque */
    * {
        touch-action: manipulation;
    }
}

/* Remover qualquer funcionalidade de edição visual */
.edit-button,
.edit-overlay,
.image-edit-overlay,
.edit-instructions {
    display: none !important;
}
