/*
Theme Name: Anglotopia Bio
Theme URI: https://anglotopia.com
Author: Anglotopia
Author URI: https://anglotopia.com
Description: A custom bio link page WordPress theme with video backgrounds, link blocks, and social sharing features
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anglotopia-bio
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: transparent;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    background: transparent;
}

/* Video Background Container */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Blur Overlay */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    backdrop-filter: blur(var(--blur-amount, 10px));
    background-color: rgba(0, 0, 0, var(--overlay-opacity, 0.15));
}

/* Main Container */
.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Header/Logo Section */
.site-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    width: 100%;
    max-width: 680px;
}

.subscribe-button {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--subscribe-bg, rgba(255, 255, 255, 0.9));
    color: var(--subscribe-color, #000);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.subscribe-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.share-button {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--share-bg, rgba(255, 255, 255, 0.9));
    color: var(--share-color, #000);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.site-logo {
    width: var(--logo-size, 120px);
    height: var(--logo-size, 120px);
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.site-title {
    color: var(--title-color, #fff);
    font-size: var(--title-size, 24px);
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.site-description {
    color: var(--description-color, rgba(255, 255, 255, 0.9));
    font-size: var(--description-size, 16px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Links Container */
.links-container {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: transparent;
}

/* WordPress Content Wrappers - Make Everything Transparent */
.entry-content,
.post-content,
.page-content,
article,
.hentry,
.type-page,
.type-post {
    background: transparent !important;
}

/* Link Blocks */
.wp-block-button {
    width: 100%;
    background: transparent;
}

.wp-block-button__link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: var(--link-bg, rgba(255, 255, 255, 0.95));
    color: var(--link-color, #000);
    text-decoration: none;
    border-radius: var(--link-radius, 12px);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    text-align: center;
}

.wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: var(--link-hover-bg, rgba(255, 255, 255, 1));
}

/* Subscribe Modal */
.subscribe-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.subscribe-modal.active {
    display: flex;
}

.subscribe-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.subscribe-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 5px 10px;
}

.subscribe-modal-close:hover {
    color: #000;
}

.subscribe-modal h2 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #000;
}

.subscribe-modal p {
    margin-bottom: 20px;
    color: #666;
}

.subscribe-form input[type="email"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.subscribe-form input[type="email"]:focus {
    outline: none;
    border-color: var(--subscribe-bg, #000);
}

.subscribe-form button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.subscribe-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
}

.share-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.share-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 5px 10px;
}

.share-modal-close:hover {
    color: #000;
}

.share-modal h2 {
    margin-bottom: 25px;
    font-size: 24px;
    color: #000;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.twitter { background: #1DA1F2; }
.share-btn.facebook { background: #1877F2; }
.share-btn.linkedin { background: #0A66C2; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.share-btn.tiktok { background: #000; }
.share-btn.email { background: #666; }
.share-btn.copy { background: #333; }

/* Responsive */
@media (max-width: 768px) {
    .site-container {
        padding: 30px 15px;
    }

    .subscribe-button,
    .share-button {
        position: static;
        margin: 0 5px 15px;
        display: inline-block;
    }

    .site-header {
        margin-bottom: 20px;
    }

    .site-logo {
        width: 100px;
        height: 100px;
    }

    .share-buttons {
        grid-template-columns: 1fr;
    }
}
