/* Tron WordPress Theme - Main Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tron Grid Background Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(55, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(55, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: linear-gradient(90deg, #000000 0%, rgba(55, 255, 255, 0.1) 50%, #000000 100%);
    border-bottom: 2px solid #37ffff;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(55, 255, 255, 0.3), transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.site-title {
    font-size: 2.5rem;
    color: #37ffff;
    text-align: center;
    text-shadow: 0 0 10px #37ffff;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.site-description {
    text-align: center;
    color: #ffffff;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Navigation */
.main-navigation {
    margin-top: 20px;
    text-align: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.main-navigation a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-navigation a:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #37ffff;
    box-shadow: 0 0 15px rgba(55, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Main Content */
.site-main {
    padding: 40px 0;
    min-height: 60vh;
}

.content-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Posts and Pages */
.post, .page {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(55, 255, 255, 0.3);
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.post:hover, .page:hover {
    border-color: #37ffff;
    box-shadow: 0 0 20px rgba(55, 255, 255, 0.3);
    transform: translateY(-5px);
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    color: #37ffff;
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #37ffff;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.entry-title a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #37ffff;
}

.entry-meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.entry-content {
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 15px;
}

.entry-content a {
    color: #37ffff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.entry-content a:hover {
    color: #ffffff;
    border-bottom-color: #37ffff;
    text-shadow: 0 0 5px #37ffff;
}

/* Buttons */
.wp-block-button__link,
.button,
input[type="submit"] {
    background: linear-gradient(45deg, #000000, #37ffff);
    color: #ffffff;
    border: 2px solid #37ffff;
    padding: 12px 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: inherit;
    cursor: pointer;
}

.wp-block-button__link:hover,
.button:hover,
input[type="submit"]:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 15px rgba(55, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Sidebar */
.widget-area {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(55, 255, 255, 0.3);
    padding: 25px;
    height: fit-content;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    color: #37ffff;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(55, 255, 255, 0.3);
    padding-bottom: 10px;
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 8px;
}

.widget a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.widget a:hover {
    color: #37ffff;
    padding-left: 10px;
    text-shadow: 0 0 5px #37ffff;
}

/* Footer */
.site-footer {
    background: linear-gradient(90deg, #000000 0%, rgba(55, 255, 255, 0.1) 50%, #000000 100%);
    border-top: 2px solid #37ffff;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.site-info {
    color: rgba(255, 255, 255, 0.7);
}

.site-info a {
    color: #37ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-info a:hover {
    color: #ffffff;
    text-shadow: 0 0 5px #37ffff;
}

/* Comments */
.comments-area {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(55, 255, 255, 0.3);
    padding: 30px;
    margin-top: 40px;
}

.comment-list {
    list-style: none;
}

.comment {
    border-bottom: 1px solid rgba(55, 255, 255, 0.2);
    padding: 20px 0;
}

.comment-author {
    color: #37ffff;
    font-weight: bold;
}

.comment-meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(55, 255, 255, 0.3);
    color: #ffffff;
    padding: 12px;
    width: 100%;
    font-family: inherit;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: #37ffff;
    box-shadow: 0 0 10px rgba(55, 255, 255, 0.3);
    outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .post, .page {
        padding: 20px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Tron Glow Effects */
.tron-glow {
    box-shadow: 0 0 20px rgba(55, 255, 255, 0.5);
}

.tron-glow:hover {
    box-shadow: 0 0 30px rgba(55, 255, 255, 0.8);
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 2s infinite;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid #37ffff;
    color: #37ffff;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.menu-toggle:hover {
    background: #37ffff;
    color: #000000;
    box-shadow: 0 0 15px rgba(55, 255, 255, 0.5);
}

.menu-icon {
    font-family: monospace;
    font-weight: bold;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        background: rgba(0, 0, 0, 0.9);
        border: 1px solid #37ffff;
        padding: 20px;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .main-navigation li {
        width: 100%;
        text-align: center;
    }
    
    .main-navigation a {
        display: block;
        width: 100%;
        padding: 15px;
        border-bottom: 1px solid rgba(55, 255, 255, 0.2);
    }
    
    .main-navigation a:last-child {
        border-bottom: none;
    }
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    padding: 8px 16px;
    background: #37ffff;
    color: #000000;
    text-decoration: none;
    font-weight: bold;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* Additional Tron Effects */
.scan-effect::before {
    animation-duration: 1s;
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    transition: all 0.3s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

/* Footer Navigation */
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: #37ffff;
    text-shadow: 0 0 5px #37ffff;
}

.copyright {
    border-top: 1px solid rgba(55, 255, 255, 0.3);
    padding-top: 20px;
    margin-top: 20px;
}

/* Widget Area Enhancements */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widgets .widget {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(55, 255, 255, 0.2);
    padding: 20px;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.search-form input[type="search"] {
    flex: 1;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(55, 255, 255, 0.3);
    color: #ffffff;
    padding: 10px;
}

.search-form input[type="submit"] {
    background: linear-gradient(45deg, #000000, #37ffff);
    border: 2px solid #37ffff;
    color: #ffffff;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form input[type="submit"]:hover {
    background: #ffffff;
    color: #000000;
}
