/*
 * Rhodes Sea Lines - Main Stylesheet
 * 
 * @package Rhodes_Sea_Lines
 * @since 1.0.0
 */

/* Additional Styles - Extends style.css */

/* Utility Classes */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.visuallyhidden {
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
}

/* Buttons */
.button,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.button:hover,
.button:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="button"]:hover,
input[type="button"]:focus {
    background-color: #005177;
    color: #fff;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: #0073aa;
    outline: none;
}

/* Comments */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 3px;
}

.comment-list .children {
    list-style: none;
    margin-left: 2rem;
}

.comment-author img {
    border-radius: 50%;
    margin-right: 1rem;
    float: left;
}

.comment-metadata {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.comment-metadata a {
    color: #666;
}

.comment-body {
    clear: both;
}

.reply {
    margin-top: 1rem;
}

/* Navigation */
.post-navigation,
.posts-navigation,
.pagination {
    margin: 2rem 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
}

.page-numbers.current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Search Form */
.search-form {
    position: relative;
    display: flex;
    gap: 0.5rem;
}

.search-form .search-field {
    flex: 1;
}

.search-form .search-submit {
    flex-shrink: 0;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f9f9f9;
    font-size: 0.875rem;
}

.breadcrumbs a {
    text-decoration: none;
}

/* Social Share */
.social-share {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 3px;
}

.social-share h3 {
    margin-top: 0;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.share-buttons a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #0073aa;
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
}

.share-buttons a:hover {
    background: #005177;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.social-icons a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid currentColor;
    border-radius: 3px;
    text-decoration: none;
}

/* Footer Widgets */
.footer-widgets {
    background: #f5f5f5;
    padding: 3rem 0;
}

.footer-widget-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #333;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.menu-toggle-icon {
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
    position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
    position: absolute;
    left: 0;
}

.menu-toggle-icon::before {
    top: -6px;
}

.menu-toggle-icon::after {
    top: 6px;
}

/* Loading Animation */
.loading {
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Tables */
@media screen and (max-width: 767px) {
    table {
        display: block;
        overflow-x: auto;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .comment-list .children {
        margin-left: 1rem;
    }
}

/* Print Styles */
@media print {
    .no-print,
    .site-header,
    .site-footer,
    .sidebar,
    .social-share,
    .breadcrumbs,
    .post-navigation,
    .comments-area {
        display: none !important;
    }
    
    .content-area {
        width: 100% !important;
        float: none !important;
    }
}

