/*
Theme Name: Wiseloaded Stream
Description: Simple streaming site with auto-expiring posts
Version: 1.0
*/

* {
    margin: 0 10px;
    padding: 0 10px;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #0a0a0a;
    color: white;
    line-height: 1.6;
}

.header {
    background: #1a1a1a;
    padding: 1rem 0;
    text-align: center;
    border-bottom: 2px solid #e10600;
}

.header h1 {
    color: #e10600;
    font-size: 2.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

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

.match-card {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    border-color: #e10600;
}

.match-title {
    color: #e10600;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.match-description {
    color: #ccc;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.video-links {
    margin-top: 1rem;
}

.video-link {
    display: block;
    background: #e10600;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    text-align: center;
    transition: background 0.3s ease;
}

.video-link:hover {
    background: #ff1a1a;
}

.no-matches {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-top: 3rem;
}

.post-date {
    color: #888;
    font-size: 0.8rem;
    margin-top: 1rem;
    text-align: right;
}

/* Additional Styles for SEO Elements */
.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a1a 100%) !important;
}

.sports-categories div {
    transition: transform 0.3s ease;
}

.sports-categories div:hover {
    transform: translateY(-5px);
}

.seo-content {
    border: 1px solid #333;
}

.additional-seo {
    border: 1px solid #e10600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
    }
    
    .sports-categories div {
        margin-bottom: 1rem;
    }
    
    .seo-content > div {
        grid-template-columns: 1fr !important;
    }
}

/* Animation for match cards */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.match-card {
    animation: fadeIn 0.5s ease;
}

/* Improved Link Styles */
.match-title a:hover {
    color: #ff1a1a !important;
    text-decoration: underline !important;
}

.video-link.internal {
    background: #333 !important;
    color: white !important;
}

.video-link.internal:hover {
    background: #555 !important;
}

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

.stream-card {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #e10600;
    transition: transform 0.3s ease;
}

.stream-card:hover {
    transform: translateY(-5px);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .matches-grid {
        grid-template-columns: 1fr;
    }
    
    .streams-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Match header styles */
.match-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a1a 100%);
    border: 1px solid #333;
}

.match-detail {
    max-width: 1200px;
    margin: 0 auto;
}

/* Simplified Homepage Styles */
.matches-table {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.match-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #333;
    transition: background 0.3s ease;
    align-items: center;
}

.match-row:hover {
    background: #252525 !important;
}

.match-row:last-child {
    border-bottom: none;
}

.match-row a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    transition: color 0.3s ease;
}

.match-row a:hover {
    color: #e10600 !important;
}

/* Sports categories grid */
.sports-categories a {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sports-categories a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Responsive design */
@media (max-width: 768px) {
    .match-row {
        grid-template-columns: 80px 1fr;
        padding: 0.8rem 1rem;
        gap: 0.8rem;
    }
    
    .matches-table > div:first-child {
        grid-template-columns: 80px 1fr;
        padding: 0.8rem 1rem;
    }
    
    .match-row div:first-child {
        font-size: 1rem;
    }
    
    .match-row a {
        font-size: 1rem;
    }
    
    .sports-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .match-row {
        grid-template-columns: 70px 1fr;
        padding: 0.6rem 0.8rem;
        gap: 0.6rem;
    }
    
    .matches-table > div:first-child {
        grid-template-columns: 70px 1fr;
        padding: 0.6rem 0.8rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .sports-categories {
        grid-template-columns: 1fr;
    }
}

/* GMT+1 Time Indicator */
.time-gmt {
    background: #e10600;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    display: inline-block;
    margin-left: 0.5rem;
}

/* Match Content Styles */
.match-content {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.match-content h2,
.match-content h3,
.match-content h4 {
    color: #2c3e50;
    margin: 20px 0 15px 0;
}

.match-content p {
    margin-bottom: 15px;
}

.match-content ul, 
.match-content ol {
    margin: 15px 0;
    padding-left: 20px;
}

.match-content li {
    margin-bottom: 8px;
}

/* Working Links Section Styles */
.working-links-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: white;
}

.working-links-section h3 {
    color: white;
    font-size: 22px;
    margin: 0 0 15px 0;
    text-align: center;
    font-weight: 700;
}

.stream-quality-notice {
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Video Links Grid */
.working-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stream-link-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stream-link-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.stream-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.stream-link:hover {
    color: #f8f9fa;
}

.link-icon {
    font-size: 20px;
    margin-right: 12px;
}

.link-text {
    font-size: 16px;
}

/* Stream Note */
.stream-note {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border-left: 4px solid #ffd700;
}

.stream-note p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* No Links Message */
.no-links-message {
    text-align: center;
    font-style: italic;
    opacity: 0.8;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .working-links-grid {
        grid-template-columns: 1fr;
    }
    
    .working-links-section {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .working-links-section h3 {
        font-size: 20px;
    }
    
    .stream-link {
        padding: 12px 15px;
    }
    
    .match-content {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .working-links-section {
        padding: 15px 10px;
    }
    
    .working-links-section h3 {
        font-size: 18px;
    }
    
    .link-text {
        font-size: 14px;
    }
}

/* Today vs Yesterday styling */
.today-match {
    background: #1a1a1a !important;
    border-left: 4px solid #e10600 !important;
}

.yesterday-match {
    background: #252525 !important;
    border-left: 4px solid #666 !important;
    opacity: 0.8;
}

.yesterday-match a {
    color: #ccc !important;
}

.yesterday-match .match-time {
    color: #888 !important;
}

/* Details/Section styling */
details summary {
    list-style: none;
    cursor: pointer;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary span {
    transform: rotate(180deg);
}

/* Date headers */
.date-header {
    background: linear-gradient(135deg, #e10600, #ff1a1a);
    color: white;
    padding: 0.8rem 1.5rem;
    font-weight: bold;
    margin-bottom: 0;
}

/* Header Styles */
.top-header {
    background: #0a0a0a;
    border-bottom: 1px solid #333;
}

.main-header {
    background: #1a1a1a;
}

.main-menu a {
    position: relative;
    transition: color 0.3s ease;
}

.main-menu a:hover {
    color: #e10600 !important;
}

.main-menu a.active {
    color: #e10600;
}

/* Page Title Bar */
.page-title-bar {
    background: #252525;
    border-bottom: 1px solid #333;
}

/* Sharing Buttons */
.sharing-buttons a {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sharing-buttons a:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.pagination a:hover {
    background: #e10600;
}

.pagination .current {
    background: #e10600;
    color: white;
}

/* Pulse animation for LIVE indicator */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-menu {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .menu-left, .menu-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sharing-buttons div {
        flex-direction: column;
        align-items: center;
    }
    
    #share-link {
        width: 200px !important;
    }
    
    .category-description > div {
        grid-template-columns: 1fr !important;
    }
}