/*
Theme Name: Impact Evaluator
Description: Professional basketball analytics WordPress theme for Impact Evaluator platform
Author: Impact Evaluator Team
Version: 1.0.0
License: GPL v2 or later
Text Domain: impact-evaluator
Tags: sports, analytics, basketball, professional, responsive
*/

/* Import the main stylesheet */
@import url('assets/css/main.css');

/* WordPress specific styles */
.wp-block-group {
    margin: 0;
}

.wp-block-columns {
    margin: 0;
}

.alignwide {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* WordPress admin bar compatibility */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* WordPress comment styles */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.comment-author {
    font-weight: 600;
    color: #020244;
}

.comment-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.comment-content {
    margin-top: 15px;
}

/* WordPress pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    text-decoration: none;
    color: #383838;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: linear-gradient(135deg, #020244 0%, #590000 100%);
    color: #ffffff;
    border-color: #020244;
}

.pagination .current {
    background: linear-gradient(135deg, #020244 0%, #590000 100%);
    color: #ffffff;
    border-color: #020244;
}

/* WordPress widget styles */
.widget {
    margin-bottom: 30px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widget-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #020244;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #383838;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #020244;
}

/* WordPress search form */
.search-form {
    display: flex;
    gap: 10px;
}

.search-field {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

.search-field:focus {
    border-color: #020244;
}

.search-submit {
    padding: 10px 20px;
    background: linear-gradient(135deg, #020244 0%, #590000 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* WordPress post formats */
.post-format-quote {
    background: #f8f9fa;
    border-left: 4px solid #020244;
    padding: 20px;
    font-style: italic;
}

.post-format-link {
    background: linear-gradient(135deg, rgba(2, 2, 68, 0.1) 0%, rgba(89, 0, 0, 0.1) 100%);
    padding: 20px;
    border-radius: 8px;
}

/* WordPress gallery styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* WordPress accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.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;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WordPress responsive embeds */
.wp-block-embed {
    margin: 20px 0;
}

.wp-block-embed iframe,
.wp-block-embed object,
.wp-block-embed video {
    max-width: 100%;
    height: auto;
}

/* WordPress block editor styles */
.wp-block-quote {
    border-left: 4px solid #020244;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
}

.wp-block-pullquote {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin: 30px 0;
}

.wp-block-button .wp-block-button__link {
    background: linear-gradient(135deg, #020244 0%, #590000 100%);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wp-block-button .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* WordPress custom post type styles */
.post-type-teams .entry-header {
    background: linear-gradient(135deg, #020244 0%, #590000 100%);
    color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.post-type-players .entry-header {
    background: linear-gradient(135deg, #590000 0%, #020244 100%);
    color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 30px;
}

/* WordPress menu styles */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 15px 20px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.main-navigation .current-menu-item > a {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* WordPress responsive styles */
@media (max-width: 768px) {
    .alignwide,
    .alignfull {
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        max-width: calc(100% + 40px);
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 14px;
    }
}
