/*
Theme Name: Elementra Child Theme
Template: elementra
Theme URI: https://elementra.themerex.net/
Description: Elementra Child Theme
Author: ThemeREX
Author URI: https://themerex.net/
Version: 1.0
Tested up to: 6.7
Requires at least: 5.0
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, e-commerce, portfolio, grid-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
Text Domain: elementra
*/


/* =Child-Theme customization starts here
------------------------------------------------------------ */

/* Login, register, account form */
button.btn.button.ur-submit-button.submit {
    background-color: #F97316 !important;
}

button.btn.button.ur-submit-button.submit:hover {
    background-color: #F97316 !important;
}

.user-registration-Button.button.ur-submit-button {
  background-color: #F97316 !important;
}

.user-registration-Button.button.ur-submit-button:hover {
  background-color: #F97316 !important;
}

.user-registration-Button.button {
	background-color: #F97316 !important;
}

.user-registration-Button.button:hover {
	background-color: #D15C09 !important;
}

#user-registration a {
    color: #F97316 !important;
}

#user-registration a:hover {
    color: #D15C09 !important;
}

/* Custom login nav link */
.open-login-popup {
  padding-top: 7px !important;
  display: flex !important;
  margin-left: 12px !important;
}

.account-link {
  display: flex !important;
  padding-top: 7px !important;
  margin-left: 12px !important;
}

.sub-menu {
  display: none; /* Αρχικά κρυφό το υπομενού */
  margin-left: 12px !important;
  padding-top: 5px !important;
}

/* Εμφάνιση sub-menu όταν υπάρχει η κλάση 'open' */
.account-menu.open .sub-menu {
  display: block;
}

/* Για desktop, το sub-menu εμφανίζεται μόνο με hover */
.account-menu:hover .sub-menu {
  display: block;
}

/* Responsive στυλ για κινητά και tablets */
@media (max-width: 1200px) {
  .open-login-popup {
    display: flex;
    color: white !important;
    font-size: 21.5px !important;
    padding-top: 15px !important;
    margin-left: 0px !important;
  }

  .account-link {
    color: white !important;
    font-size: 21.5px !important;
    padding-top: 15px !important;
    margin-left: 0px !important;
  }

  .sub-menu {
    color: white !important;
    font-size: 21.5px !important;
    margin-left: 0px !important;
    padding-top: 20px !important;
  }

  .sub-menu a {
    display: block;
    color: white !important;
    margin-bottom: 15px !important;
  }
}

/* Custom popup login */
.login-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}

.login-popup-content {
  background: #fff;
  width: 520px;
  max-width: 90%;
  margin: 10% auto;
  padding: 25px;
  border-radius: 8px;
  position: relative;
  font-family: inherit; /* Κληρονομεί τη γραμματοσειρά του theme */
  font-size: inherit;   /* Κληρονομεί το μέγεθος της γραμματοσειράς του theme */
}

@media (max-width: 1024px) and (max-height: 700px) {
  .login-popup-content {
    width: 80%; /* Περιορισμός πλάτους στο tablet */
    max-width: 520px; /* Μην υπερβαίνει το 520px */
    padding: 20px;
    margin: 15% auto;
    font-size: 16px; /* Κανονικό μέγεθος για tablet */
    margin-top: -165px;
  }
}

/* Donator Display */
.user-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.user-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    width: calc(33.333% - 20px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.user-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.user-avatar {
    margin-right: 15px;
}

.user-info {
    font-size: 14px;
}

.user-info strong {
    font-weight: bold;
}

.user-pagination {
    margin-top: 20px;
    text-align: center;
}

.user-page-link {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #0073aa;
}

.user-page-link:hover {
    background: #0073aa;
    color: #fff;
}

.user-page-link.active {
    background: #0073aa;
    color: #fff;
    font-weight: bold;
}


