/* Social Media Templates Page Styles */

.social-header {
    position: relative;
    padding: 10rem 2rem 6rem;
    text-align: center;
    background: var(--black);
    overflow: hidden;
}

.social-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/gallery-15.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    filter: blur(2px);
    z-index: 0;
}

.social-title {
    position: relative;
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, var(--accent), var(--glow), var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    transform: skewX(-12deg);
    animation: gradient-shift 3s ease infinite;
    z-index: 1;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.social-subtitle {
    position: relative;
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
    z-index: 1;
}

/* Templates Section */
.templates-section {
    padding: 6rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.templates-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.template-category {
    margin-bottom: 4rem;
}

.category-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--white);
    position: relative;
    display: inline-block;
    transform: skewX(-12deg);
    letter-spacing: 0.1em;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.template-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 0, 153, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.template-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--glow);
    box-shadow: 
        0 20px 40px rgba(0, 255, 136, 0.3),
        0 0 60px rgba(255, 0, 153, 0.2);
}

.template-card:hover::before {
    opacity: 1;
}

.template-preview {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* Twitter Templates */
.twitter-header {
    background-image: url('/images/gallery-7.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.twitter-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.8), rgba(13, 126, 196, 0.8));
}

.twitter-post {
    background-image: url('/images/gallery-12.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.twitter-post::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

/* TikTok Templates */
.tiktok-story {
    background-image: url('/images/gallery-18.png');
    background-size: cover;
    background-position: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.tiktok-story::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.9));
}

.tiktok-story .viral-text {
    color: white;
    font-size: 1.2rem;
    padding: 2rem;
    text-align: center;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.tiktok-story .handle {
    color: white;
    font-size: 1rem;
    text-align: center;
    display: block;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

/* Discord Templates */
.discord-banner {
    background-image: url('/images/gallery-9.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.discord-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.8), rgba(71, 82, 196, 0.8));
}

.discord-avatar {
    background-image: url('/images/gallery-14.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.discord-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.7), rgba(71, 82, 196, 0.9));
}

.discord-avatar .avatar-text {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    color: white;
    font-weight: 900;
}

/* Instagram Templates */
.insta-post {
    background-image: url('/images/gallery-5.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.insta-post::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(240, 148, 51, 0.7), 
        rgba(230, 104, 60, 0.7), 
        rgba(220, 39, 67, 0.7), 
        rgba(204, 35, 102, 0.7), 
        rgba(188, 24, 136, 0.7));
}

.insta-story {
    background-image: url('/images/gallery-20.png');
    background-size: cover;
    background-position: center;
    aspect-ratio: 9/16;
    position: relative;
}

.insta-story::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(131, 58, 180, 0.6), 
        rgba(253, 29, 29, 0.6), 
        rgba(252, 176, 69, 0.6));
}

/* Meme Templates */
.meme-template {
    background-image: url('/images/gallery-11.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.meme-template::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
}

.meme-top, .meme-bottom {
    font-family: Impact, sans-serif;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    padding: 1rem;
    color: black;
    text-shadow: 
        2px 2px 0 white,
        -2px -2px 0 white,
        2px -2px 0 white,
        -2px 2px 0 white;
    position: relative;
    z-index: 3;
}

.meme-space {
    height: 100px;
}

/* Template Content Styles */
.template-content {
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.template-content h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    transform: skewX(-12deg);
}

.template-content p {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 1rem;
}

.template-content span {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
}

.hashtag {
    font-size: 2rem !important;
    color: var(--glow) !important;
    font-weight: 900;
    margin-bottom: 1rem;
}

.quote {
    font-style: italic;
    font-size: 1.3rem !important;
}

.sol {
    background: linear-gradient(90deg, #00FFA3, #DC1FFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    font-size: 1.2rem !important;
}

/* Template Info */
.template-info {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
}

.template-size {
    color: var(--gray);
    font-size: 0.9rem;
}

.download-btn {
    background: linear-gradient(90deg, var(--accent), var(--glow));
    color: var(--black);
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 100px;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: width 0.6s, height 0.6s;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.download-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Copy Kit Section */
.copy-kit {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255, 0, 153, 0.05), rgba(0, 255, 136, 0.05));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.kit-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
}

.copy-items {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.copy-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
}

.copy-item h3 {
    color: var(--glow);
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
}

.copy-item p {
    color: var(--white);
    margin-bottom: 1rem;
    font-family: 'Inter', monospace;
    word-break: break-all;
}

.copy-item button {
    background: transparent;
    border: 1px solid var(--glow);
    color: var(--glow);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-item button:hover {
    background: var(--glow);
    color: var(--black);
}

/* Responsive */
@media (max-width: 768px) {
    .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .copy-items {
        grid-template-columns: 1fr;
    }
}